There is often an interaction between social plugins and short codes and/or widget content entries whereby the social plugin adds its array of social buttons in a location where it is not wanted. This entry talks about how to prevent this from happening.
Background
For a long time, there were two types of entry: post and page. Recently, WordPress has added a capability for adding additional entry types.
Builder, for example, adds an entry type called Widget Content. The Short Code plugin we’re using adds another type.
Social plugins usually have a checkboxes that enable turning on or off posts, pages, and other entry types that it knows about. But they usually don’t know about the “extra” types that some plugin or theme has added.
Problem
This causes the social bar to appear, for example, above or below the header of a post page in addition to appearing in the content section of the page.
Solution
If the problem appears within a Short Code entry:
There is a setting in the Edit screen for Short Codes. It’s in a section labeled “Suppress Content Filters”. Check that checkbox and the extra social bar is no longer connected to this short code entry.
I think this is what’s going on. Things like Floating Social Bar add themselves by adding a filter to a post type (e.g. page, post, widget content, etc.). Filters essentially say, “Add this code whenever you run [some tag]”. What this setting tells the short code is “don’t run the filter hooks when expanding this short code.”
Recent Comments