Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ArtGoddess

    (@artgoddess)

    Sorry, just to add more context, I have placed this PHP snippet at the very end of the twentytwentyone/header.php file:

    <div id="content" class="site-content">
    <div id="primary" class="content-area">
    <main id="main" class="site-main">
    
    <?php
    if ( !is_front_page() && function_exists('saswp_render_breadcrumbs_html') ) {
    	echo do_shortcode( '[saswp-breadcrumbs]' );
    } ?>

    The ouptut is:

    <ul class="saswp-breadcrumbs-ul"></ul>

    Thank you again. ????

    • This reply was modified 1 year, 1 month ago by ArtGoddess.
    Thread Starter ArtGoddess

    (@artgoddess)

    I have also tried with this code in my functions.php child theme, but mixes the menu and the breadcrumbs:

    function add_breadcrumb_before_title($title, $id = null) {
      if ( !is_front_page() && function_exists('saswp_render_breadcrumbs_html') ) { // Adjust conditions as needed
        $breadcrumb = do_shortcode( '[saswp-breadcrumbs]' );
        return $title . ' ' . $breadcrumb;
      }
      return $title;
    }
    add_filter('the_title', 'add_breadcrumb_before_title', 10, 2);
    Thread Starter ArtGoddess

    (@artgoddess)

    I have tried with other breadcrumbs plugins. The result is the same. This issue is related to the Twenty Twenty-One theme or the Twentig plugin. Any assistance would be really appreciated. Thank you.

    Thread Starter ArtGoddess

    (@artgoddess)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Breadcrumbs Twentig with Schema & Structured Data for WP & AMP plugin’ is closed to new replies.