Home > Forum

Support Forum

Disable floating share bar on certain pages

Discussion forum for WP Socializer plugin

Disable floating share bar on certain pages

Postby martin0smith » Tue Jan 29, 2013 5:57 pm

Hi,

Awesome plug in - seriously one of the best i've used :-)

Quick question, I'd like to disable the floating share bar on certain wordpress 'pages'. Not all, just a few.

I know this feature isn't currently available via the control panel but can you show me how I can edit the code instead?

In total, I only have about 4 'pages' that I'd like to disable the floating share bar on.

Thanks in advance for any help.

Martin.
martin0smith
 
Posts: 3
Joined: Tue Jan 29, 2013 5:53 pm

Re: Disable floating share bar on certain pages

Postby vaakash » Sat Feb 02, 2013 4:27 pm

Hello,

Thanks for using my plugin. Currently there is no inbuilt option to disable the plugin in certain pages.
But you can edit the file to disable as required.

- Open includes/wpsr-floatingbar.php
- Add the following line after $flag = 0;
Code: Select all
if( is_page( array(  PAGE IDS SEPERATED BY COMMA  ) ) ) return 0;


Thank you.
User avatar
vaakash
Site Admin
 
Posts: 730
Joined: Sun Jan 17, 2010 11:15 am
Location: India

Re: Disable floating share bar on certain pages

Postby martin0smith » Mon Feb 04, 2013 10:56 am

Great, thanks.

That works a treat!
martin0smith
 
Posts: 3
Joined: Tue Jan 29, 2013 5:53 pm


 


  • Related topics
    Replies
    Views
    Last post


Return to WP Socializer


phpBB SEO