• Resolved luismojica30

    (@luismojica30)


    Hola

    Me gustaría saber ?cómo activar las migas de pan en Generatepress?

    Saludos

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    You’ll need a plugin for that.

    Commonly used plugins from our other users are either Yoast or Rankmath.

    They should generate a breadcrumb shortcode which you can use and place within any of the theme’s hooks.

    As for Hook reference, you can check this documentation:
    https://docs.generatepress.com/article/hooks-visual-guide/

    Here’s a sample snippet placing a Rankmath breadcrumb after the header:

    add_action( 'generate_after_header', 'shortcode_before_entry' );
    function shortcode_after_header() {
        echo do_shortcode('[rank_math_breadcrumb]');   
    }
    Thread Starter luismojica30

    (@luismojica30)

    Hola,

    no entiendo como instalarlo y uso yoast seo…
    Y tengo el tema GP Gratis

    Hello, I do not understand how to install and I have yoast seo … And I have the Free GP theme

    Hi there,

    for Yoast you would use this code:

    add_action( 'generate_after_header', function() {
        if ( function_exists('yoast_breadcrumb') ) {
            yoast_breadcrumb( '<div class="grid-container grid-parent"><p id="breadcrumbs">','</p></div>' );
        }
    } );

    The code is PHP and this document explains how to add that to your site:

    https://docs.generatepress.com/article/adding-php/

    Thread Starter luismojica30

    (@luismojica30)

    Perfecto Gracias ?

    You’re welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[NSFW] Migas de pan’ is closed to new replies.