Archived topic
Another breadcrumb post
3 replies · Started by Justin on April 11, 2017
Hey guys
Im trying to add breadcrumbs to my current website. I am not using yoast...due to issues with seo titles not working...so I am using all in one seo.
I would like to add the code to my hooks like mentioned in other posts I found on the forum...however I am quite nervous about them showing up on my homepage and other areas I dont want them showing up in.
So let me get this straight..
I add the code to the hooks area under AFTER ENTRY TITLE...and click execute php?
If it messes the look of my website...do I just uncheck the box?
Im new so I need to know where to enter any other code I may need to add to make the site look normal.
Id like to try adding them and see what happens..I just need to be sure I can reverse it if need be.
Thanks Tom and Leo for all of your help.
Justin
Hi Justin,
What code will you be adding? I can take a look to make sure it won't cause any issues.
The hook you add it to depends on where you want it to show up.
If the code itself is fine, then you can always remove it if it doesn't work out like you hoped.
wow tom you are quick. This is pretty much real time. Awesome!
Here is the code I was told to add using a plug in NavXT
Im just worried about it blowing up my homepage...all the other pages I would imagine would be ok. Im looking to get it right under my H1
You mentioned something about conditional code. Where do I add that?
thanks
Justin
So to make it display everywhere but the home page, you could do this:
<?php if ( function_exists( 'bcn_display' ) && ! is_front_page() ) {
bcn_display();
} ?>
Then execute PHP and you should be good to go :)