minachu
Forum Replies Created
-
Forum: Plugins
In reply to: [Infinite Masonry Gallery] Reverse the orderFor anyone interested:
Edit the “edit.bundle.base” JS file and find this code:
{ key: "handleImageSelect", value: function() { for (var e = this.state.images, n = t.file_frame.state().get("selection").toJSON(), r = !1, o = 0; o < n.length; o++) "undefined" == typeof n[o].sizes || "undefined" == typeof n[o].sizes.thumbnail ? (r = !0, n[o].imgCallNeeded = !0) : n[o].thumb = n[o].sizes.thumbnail.url; for (var i = [], a = 0; a < n.length; a++) { for (var l = n[a], s = !1, c = 0; c < e.length; c++) { var u = e[c]; u.id == l.id && (s = !0) } s || (i.push(l.id), e.push(l)) } var p = this; r ? b["default"].post(ajaxurl, { action: "photo_manage_get_attachment", attachID: i }, function(t) { for (var n = 0; n < t.length; n++) { var r = e.filter(function(e) { return e.id === t[n].id }); r.length > 0 && (r[0].thumb = t[n].thumb) } p.setState({ images: e, hasChanged: !0 }) }) : p.setState({ images: e, hasChanged: !0 }) } }Replace
(i.push(l.id), e.push(l))with(i.unshift(l.id), e.unshift(l))Forum: Plugins
In reply to: [Genesis Simple Share] Causing errors in the customizerHey Pmcgilvray!
Unfortunately I couldn’t find a proper solution so I opted to excluding the share buttons from the customizer by using this:
if (!is_customize_preview()) { ... }Like this:
// Reposition the Genesis Simple Share buttons function bg_reposition_simple_share() { if (!is_customize_preview()) { if( 'post' === get_post_type() && is_single() ) { global $Genesis_Simple_Share; echo '<div class="share-buttons"><h3 class="share-title">' . __( 'Share this post', 'theme-name' ) . '</h3>'; genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons ); echo '</div>'; } } }Hope this helped! 🙂
Forum: Plugins
In reply to: [Genesis Simple Share] Causing errors in the customizerHi Nick,
Thank you for the reply, I did what you said, I even installed the plugin on a new blog using the Genesis Sample theme, but the issue still persists.
Please note that it only happens when I use a code like this one:
// Reposition the Genesis Simple Share buttons add_action( 'genesis_entry_footer', 'bg_reposition_simple_share', 1 ); function bg_reposition_simple_share() { if( 'post' === get_post_type() && is_single() ) { global $Genesis_Simple_Share; echo '<div class="share-buttons"><h3 class="share-title">' . __( 'Share this post', 'theme-name' ) . '</h3>'; genesis_share_icon_output( 'after-entry', $Genesis_Simple_Share->icons ); echo '</div>'; } }And I skipped selecting a display position. I have no other plugins, and version is 1.1.1
I’ll be sending a support ticket shortly.
Thank you for your time.Forum: Plugins
In reply to: HTML Code GeneratorI want to use it for image tags. For example, when the user types the image link into the input and clicks submit, the result will be:
<img src="image link" />