Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1363259

    Hi there!

    What are the best practices to implement YOAST SEO Breadcrumbs on the whole site except on the home page in Enfold?

    Are there means to custom the breadcrumbs such as alignment or colors for instance?

    Thanks!

    Olivier

    #1363350

    Hey Olivier,

    It depends on where you want them, you could try this to output them after the main container for example:

    function oliver_add_yoast_breadcrumbs() { 
      echo do_shortcode('[your-shortcode]');
    } 
    add_action( 'ava_after_main_container', 'oliver_add_yoast_breadcrumbs');

    Best regards,
    Rikard

    #1363407

    Hey Rikard!

    Thank you, I would like to have them on the top of all pages exept on the home page, just below the main menu bar.

    Are there means to customise the color of the fonts?

    Thank you again and best regards,

    Olivier

    #1363463

    Hi,

    Please try this code then:

    function oliver_add_yoast_breadcrumbs() { 
      if ( ! is_home() && ! is_front_page() ) {
        echo do_shortcode('[your-shortcode]');
      }
    } 
    add_action( 'ava_after_main_container', 'oliver_add_yoast_breadcrumbs');

    I’m not sure which colours you are looking to change, please clarify.

    Best regards,
    Rikard

    • This reply was modified 2 years, 3 months ago by Rikard.
    #1363484

    Hi Rikard,

    Thank you very much for your help, we will not implement the breadcrumbs until some days so I don’t know about the colors yet, can you let the thread open?

    Thanks again and best regards,

    Olivier

    #1363503

    Hi,

    Thanks for the update. We’ll leave this thread open for you.

    Best regards,
    Rikard

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