• Hello,

    Great and convenient plug-in! I am just wrapping up the implementation of it to our site. There is a very odd occurrence that is taking place that I need some guidance on. I have a slide show widget that is showing the Patreon Support link in the content section and it is very intrusive. We only need the Patreon support link to be displayed at the bottom of each post but it is also appearing there, too.

    Is there any code I can apply to prevent it from showing up in the slide show on the home page?

    Please check our homepage as reference.
    Website: http://www.freedomcgc.com

    Thank you for any and all assistance!

    https://wordpress.org/plugins/patron-button-and-widgets-by-codebard/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter brinkingyellows

    (@brinkingyellows)

    It also appears to be happening in every slide show widget that I have on the site. You can check the side bar of our front page articles.

    You can see an example of this here.

    Barring this, you have done a great job on this plugin. I hope for a resolution and would like to contribute and review this plugin once this is can be resolved.

    Plugin Author CodeBard

    (@codebard)

    If your slider is using the_excerpt or get_the_excerpt, that may be causing it since the current version of the plugin has a bug.

    It will be fixed in the next, but until then you can do what i advised someone else who had a similar problem:

    at plugin_core/core_actions.php in plugin folder, on line 11:

    if(in_array(‘get_the_excerpt’, $GLOBALS[‘wp_current_filter’]) OR ‘post’ !== get_post_type()) $return = $content;

    to

    if(in_array(‘get_the_excerpt’, $GLOBALS[‘wp_current_filter’]) OR ‘post’ !== get_post_type()) {

    $return = $content;
    break;

    }

    Let me know if that fixes it.

    Thread Starter brinkingyellows

    (@brinkingyellows)

    I’ll give it a try right now and let you know. Stand by.

    Thread Starter brinkingyellows

    (@brinkingyellows)

    Actually, I already have tried that after reviewing your support posts. I don’t like bothering developers of a plugin, especially if it is free.

    There is an item on line 18 that states:

    global $post;

    $get_url=get_permalink();

    Does that also need to be replaced with the code you stated as well?

    Thread Starter brinkingyellows

    (@brinkingyellows)

    In this instance, I can say that the text is being input manually in to the slide show and not pulled from a post.

    Thread Starter brinkingyellows

    (@brinkingyellows)

    I can say that the code change did not have an effect, unfortunately.

    Here is a screen shot of that snippet of the code here.

    Thread Starter brinkingyellows

    (@brinkingyellows)

    Sorry for so many replies to this thread. I also notice that it doesn’t have an effect on the buddypress group forums or bbpress forums either.

    You can see the slide shows are “clean” here in the side bar.

    Thread Starter brinkingyellows

    (@brinkingyellows)

    Just FYI – I added the following code to my custom.css file.

    [id^="wk-"] .cb_p6_patreon_button { display: none; }

    It removed the Patreon button from the home page slide but not the side bar slide shows in single posts. Still looking at how to resolve this sitewide.

    Plugin Author CodeBard

    (@codebard)

    How does your slider plugin pull the data it shows?

    If it was using the_excerpt or get_the_excerpt, then the change should have worked.

    You can try adding !is_single() to the condition:

    if(in_array(‘get_the_excerpt’, $GLOBALS[‘wp_current_filter’]) OR ‘post’ !== get_post_type() OR !is_single())

    Lets see what will that do.

    Thread Starter brinkingyellows

    (@brinkingyellows)

    I’m waiting to hear back from them about what they are going to say about the slideshow function. I’ll keep you posted. Thank you for responding to all this.

    Plugin Author CodeBard

    (@codebard)

    In the meantime you should try this in your plugin code:

    You can try adding !is_single() to the condition:

    if(in_array(‘get_the_excerpt’, $GLOBALS[‘wp_current_filter’]) OR ‘post’ !== get_post_type() OR !is_single())

    Thread Starter brinkingyellows

    (@brinkingyellows)

    We actually just went with the following code:

    .uk-slideshow .hupso-share-buttons, .uk-slideshow .cb_p6_patreon_button,
    [id^="wk-"] .cb_p6_patreon_button {
    display: none;
    }

    It worked but it is still a bandaid fix and it may have more to do with the slideshow widget than it does with the this plugin.

    I don’t have an answer on how the slider pulls the data, unfortunately. However, here is the site that has all the features for this suite just for you to reference. I wish I could be of more help in getting you the slide shows pulling methods.

    Plugin Author CodeBard

    (@codebard)

    Adding OR !is_single() to the above if code may fix the problem at its core and may not necessitate any CSS hacks, though if you want to leave your solution at the CSS hack, its fine.

    Plugin Author CodeBard

    (@codebard)

    The new version will probably fix your issue. Just update it from your WP admin.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Patreon Button SHowing in Slideshow Widgetkit’ is closed to new replies.