- This topic has 8 replies, 2 voices, and was last updated 1 year, 11 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
I`m trying to figure out where to put the following code to enable Bread Crumbs in Bard Pro
if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '',' ' ); } ?>
Click here to see what Yoast has to say about it.
Hi Tor,
I will redirect this email to the developer’s board and they will check.
Kind Regards, Vako
Hi,
Where do you want to display your breadcrumbs?
Regards
I`m oppen for suggestions, but initially I was thinking of right above the pagetitle to the left and above the images in posts to the left
You are welcome. Feel free to contact us anytime.
Kind Regards
It looks like the responses to this question were marked as private. I too would like to add Yoast breadcrumbs to my page. Same location. Above the title but with Ashe Pro.
Hi Anthony,
Sure, here are the steps to add Yoast breadcrumbs to your page using PHP file modification in Ashe Pro:
In your WordPress dashboard, go to Appearance > Editor.
Select the “functions.php” file from the list of theme files on the right-hand side.
Add the following code at the end of the “functions.php” file:
php
Copy code
add_action( ‘ashe_before_header’, ‘ashe_add_yoast_breadcrumbs’ );
function ashe_add_yoast_breadcrumbs() {
if ( function_exists(‘yoast_breadcrumb’) ) {
echo ‘<div class=”yoast-breadcrumbs”>’;
yoast_breadcrumb(‘<p id=”breadcrumbs”>’,'</p>’);
echo ‘</div>’;
}
}
Save the changes.
This should add the Yoast breadcrumbs above the title on your page using the ashe_before_header hook. If you want to change the location of the breadcrumbs, you can use a different hook that matches the location where you want to display them.
Note: It’s always a good idea to make a backup of your website before modifying any theme files, just in case something goes wrong.
Let me know if you have any questions or need further assistance.
Kind Regards