Remove breadcrumbs from pages only
-
How do we remove the breadcrumbs and disable them from displaying on pages only? I run a blog but also have some pages that I don’t want to have any navigation on as they are “landing pages” where I’m trying to get the visitor to complete a form so I don’t want any navigation on it. I have tried removing the templates for the pages and unlinked pages under the settings, leaving no code for them, but they still show up. I’m running the Vantage template from SiteOrigin.
I found this possible fix on another site, to add this code to the breadcrumb.php file where they are called from, however it doesn’t work, at least not in my theme or current version of WP.
if ( ! is_page() || ! in_array( get_the_ID(), $ids ) ) { bcn_display(); }
It would be wonderful if there were just a checkbox for each type of taxonomy that would enable and disable on those types. Maybe that could be a feature request but for now I just need to know how to remove them. I’m running the latest version of WP and the plugin.
- The topic ‘Remove breadcrumbs from pages only’ is closed to new replies.