Archived topic
Trying to enable Breadcrumbs (Yoast SEO)
9 replies · Started by Joseph on November 4, 2017
This is the code I used, on the GP hooks portion (after entry title)
<?php if ( is_page() || is_single() ) : ?>
( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('
<p id="breadcrumbs">','</p>
');
}
<?php endif; ?>
I'm sure I butchered that somehow. Also, how do I have it so it doesn't appear on the home page? I'm not good at PHP and don't know how to combine this:
<?php if ( ! is_front_page() ) : ?>
xxxxxxxxxxx
<?php endif; ?>
Hi there,
Try this:
<?php if ( function_exists('yoast_breadcrumb') && ! is_front_page() && is_page() && is_single() ) : ?>
<?php yoast_breadcrumb( '<p id=”breadcrumbs”>','</p>' ); ?>
<?php endif; ?>
Darn, that didn't work.
Are you only looking to exclude on home page?
If so try this:
<?php if ( function_exists('yoast_breadcrumb') && ! is_front_page() ) : ?>
<?php yoast_breadcrumb( '<p id=”breadcrumbs”>','</p>' ); ?>
<?php endif; ?>
Genius! It works.
No problem!
hello Leo, can you help me out?
I know nothing about breadcrumbs and how to do it?
And I don't know about any coding either.
But I do want my site look like this :
https://cl.ly/0k1s0n3Q2t0F
And this ( read the comments section )
https://cl.ly/1M1B0k3t0I39
Can I add you to my WordPress website as an admin and add what it should be to have the breadcrumbs as i stated above ?
Hi there,
Can you open a new topic and provide a link to your site?
and also doing something for users is out of the scope of this forum but we will gladly help to guide you through.
Hi Leo,
How do I disable the breadcrumbs on multiple pages.
Here is one of the link where I want to disable breadcrumbs:
https://www.superbeyebrows.co.uk/services/
Thanks
Zo
Check out this: https://generatepress.com/forums/topic/gutter-in-lightweight-grid-columns/
and click on See more info on A PAGE Page.
Please open a new topic if you need additional help.