- This topic has 9 replies, 4 voices, and was last updated 8 years, 1 month ago by
Leo.
-
AuthorPosts
-
November 4, 2017 at 11:49 am #416236
Joseph
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; ?>November 4, 2017 at 3:57 pm #416326Leo
StaffCustomer SupportHi 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; ?>November 4, 2017 at 6:36 pm #416370Joseph
Darn, that didn’t work.
November 4, 2017 at 8:06 pm #416405Leo
StaffCustomer SupportAre 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; ?>November 4, 2017 at 9:33 pm #416423Joseph
Genius! It works.
November 5, 2017 at 11:22 am #416669Leo
StaffCustomer SupportNo problem!
December 8, 2017 at 10:27 am #444998syafiq
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/0k1s0n3Q2t0FAnd this ( read the comments section )
https://cl.ly/1M1B0k3t0I39Can I add you to my WordPress website as an admin and add what it should be to have the breadcrumbs as i stated above ?
December 8, 2017 at 11:24 am #445047Leo
StaffCustomer SupportHi 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.
January 15, 2018 at 8:22 am #471473Zohaib
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
January 15, 2018 at 8:36 am #471493Leo
StaffCustomer SupportCheck 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.
-
AuthorPosts
- You must be logged in to reply to this topic.