- This topic has 8 replies, 2 voices, and was last updated 2 years, 5 months ago by
vako.
-
AuthorPosts
-
October 26, 2020 at 4:10 am #56638
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.
October 26, 2020 at 4:23 pm #56656Hi Tor,
I will redirect this email to the developer’s board and they will check.
Kind Regards, Vako
October 27, 2020 at 4:30 pm #56677Hi,
Where do you want to display your breadcrumbs?
Regards
October 27, 2020 at 5:11 pm #56679I`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
October 29, 2020 at 11:01 am #56699This reply has been marked as private.October 29, 2020 at 5:24 pm #56714This reply has been marked as private.October 30, 2020 at 10:20 am #56721You are welcome. Feel free to contact us anytime.
Kind Regards
May 4, 2023 at 12:15 am #71081It 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.
May 4, 2023 at 10:53 pm #71084Hi 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
-
AuthorPosts
- You must be logged in to reply to this topic.
