Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
Version 9
Matthew Szwandt
0 points
Beginner
I’m using a plugin that’s supposed to only display on the homepage, but instead it’s showing on all pages with pagination too (categories, stores etc).
Is there anything I can paste into the theme functions to make sure the shortcode is only visible on the homepage only? Any specific theme tags?
I’m using a plugin that’s supposed to only display on the homepage, but instead it’s showing on all pages with pagination too (categories, stores etc).
Is there anything I can paste into the theme functions to make sure the shortcode is only visible on the homepage only? Any specific theme tags?
I tried this bit it’s not working:
<?php
if( is_front_page() ) {
echo do_shortcode(‘[my shortcode]’);
}
?>
Thanks
Matthew
Members Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login NowMembers Only Content
This reply is for PremiumPress customers only.
Login Now