• Hello. I have an issue on my site where the social icons are being displayed in areas they should not be.

    Here is an article explaining the exact problem and solution:

    https://pippinsplugins.com/playing-nice-with-the-content-filter/

    The part that I am referring to is:

    In order to solve this problem, we can use one more conditional tag. The is_main_query() function was introduced in WordPress 3.3 and allows us to check whether we are currently inside of the main post query. The main post query can be thought of as the primary post loop that displays the main content for the post/page or archive. By using this tag, our filter will NOT get applied to any custom loops in sidebars, footers, or elsewhere, even if they use this:

    So, can you please update your plugin to fix this issue? I’m sure it will solve compatibility issues with many plugins/themes.

    Thanks!

    https://www.ads-software.com/plugins/simple-social-icons/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    Hi, Dave!

    Thanks for the report and for your kind suggestion.

    Is the problem you’re having definitely with Simple Social Icons and not Genesis Simple Share or another StudioPress plugin?

    I only ask because Simple Social Icons doesn’t output icons in the main content area by default (only in widget areas), and it does not make use of the_content filter described in Pippin’s article.

    Are you able to go into more detail about the issue the plugin is causing for you, or link to a page where the rogue icons are visible? I’d be happy to take a closer look for you.

    Thread Starter dave nicosia

    (@dave-nicosia)

    Ahh you were correct. The issue was with the Simple Share Buttons Plus Plugin. I apologize and mark this resolved or remove it.

    Thanks!

    Dave

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Social Icons Displaying in wrong places’ is closed to new replies.