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