Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #56638
    Tor Nygard
    Participant
    Premium Member

    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.

    
    
    		
    	
    #56656
    vako
    Keymaster
    WP Royal Team

    Hi Tor,

     

    I will redirect this email to the developer’s board and they will check.

     

    Kind Regards, Vako

    #56677
    Nick
    Keymaster
    WP Royal Team

    Hi,

    Where do you want to display your breadcrumbs?

    Regards

    #56679
    Tor Nygard
    Participant
    Premium Member

    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

    Cheerleading

    #56699
    Nick
    Keymaster
    WP Royal Team
    This reply has been marked as private.
    #56714
    Tor Nygard
    Participant
    Premium Member
    This reply has been marked as private.
    #56721
    vako
    Keymaster
    WP Royal Team

    You are welcome. Feel free to contact us anytime.

     

    Kind Regards

    #71081
    Anthony Quill
    Participant
    Premium Member

    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.

    #71084
    vako
    Keymaster
    WP Royal Team

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.