0
Answered

remove from pages not posts

Jason Ballard 13 years ago updated by Andrei Tsitovets 12 years ago 9
Hello, 
Love your plugin, just wondering if there's a way to remove your plugin from pages, not posts.  I like having them at the bottom of each post, but don't want them on the rest of the pages.  Is there anyway to do this?

Answer

Answer
Answered
Hello, Jason. Yes, you can do it with the settings of the plugin. Just turn off widget displaying where you don't want to show it
Answer
Answered
Hello, Jason. Yes, you can do it with the settings of the plugin. Just turn off widget displaying where you don't want to show it
I just installed this and I have the same problem. Where is the "widget displaying"? I looked at the plugin and my theme's widgets and I do not understand what you mean?
I also can't find the "widget displaying"? I unchecked everything except "display at bottom of posts" and it's still appearing on pages without posts.  I thought unchecking the "display buttons at bottom (or top) of posts on pages" would have worked but it doesn't.
Hi - I too love Sharexy but I don't want it to show on private download pages where people are coming to pick up digital products they purchased. I have the same question as Jason and Donnie! I don't see any option for changing the plugin settings within wordpress. Thanks!
after trying to turn sharexy off of everything except the blog using the sharexy settings with no luck I created a child theme and added this:

<style type="text/css">
  .sharexyWidgetNoindexUniqueClassName {display:none;}
</style>
 
to the header of all the themes page.php, page-full.php, etc pages and turned it off that way.

This is not a good solution because all the php, javascript and html code will be output the same. It raises lots of issues:

- malicious users could change your style settings and share the content the same (and maybe your pages are not ready to be shared)

- the page is heavier than expected


Moreover it's not recommended to change the template files to apply a style to a page. It is sufficient to add this code to your style.css file:


body.page .yourdivclass { /* these rules only apply for pages */ }

Brilliant, Donnie!  I just used your solution and it worked beautifully. Thank you soooo much! 
Realmente funciona a la perfección la idea de Donnie. Para mi tema de Wordpress, Twenty Eleven, añadí el código al final de page.php y ahora el plugin sharexy sólo se muestra en las entradas.
-1
Me alegro de que trabajó para usted mi amigo. 

so, this actually doesn't work in the UI and the only way to do it is to modify the PHP pages?

On the site I'm trying this on to start with there are only THREE pages.  The home page, which is the blog page, an "About" page and a "Contact" page. 


I SHOULD be able to just disable it on pages on  only have it only appear on posts.  If only it did function.......  The developer settings are SO CLEAR that everyone found it easier to modify PHP code than to find what doesn't actually seem to be there...


I can:

Placement

Display buttons at the top of full(opened) post


Display buttons at the bottom of full(opened) post


and

Display buttons in the excerpts(previews) of your posts before the summary


Display buttons in the excerpts(previews) of your posts below the summary

display for posts at the main page  display for posts at all other pages


NONE of these perform the simple action of NOT DISPLAYING THE SHAREXY BAR ON A PAGE.  There are no other options