Archived topic
Bread crumbs for non posts
20 replies · Started by Louis on May 2, 2019
I disabled it until I know what code to put in the Hook.
When you add that code, make sure you check the "Execute PHP" checkbox in your hook settings.
Well, that got rid of the code showing up. Now, I'm back to only seeing one red Home, on the far left side of the screen. Kind of frustrating.
It doesn't look like you switched it to the before_content hook. It's the same issue as before where the text color matches your background color.
I believe I do. My Element settings for "Breadcrumbs for MindIQ" Hook are:
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
?>
Hook = before_content
Execute Shortcodes = checked
Execute PHP = checked
Priority = 10
Display Rule - Location = Page -> All Pages
Maybe this visual guide will help with its placement:
https://docs.generatepress.com/article/hooks-visual-guide/#static-page