Need php code to hide widget on certain pages
-
I’m not fluent in code. I’ve tried to figure this out on my own and just can’t. Can someone please piece this together for me??
I need to hide the Floating Social Media Links widget only on the theme’s microsite template.
I found a year-old post where the plugin author said there isn’t a way to do this aside from editing php, but didn’t give the php code to use.
From the read-me file:
If you are, siply copy this code: <?php floating_social_media_links() ?> and paste it into each template file that is used for the pages that you want [the widget to appear]
But I don’t want to edit every single page type. I just want to stick one piece of code into the microsite page template php file.
Could someone please help? Thank you in advance!
- The topic ‘Need php code to hide widget on certain pages’ is closed to new replies.