Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #241779

    Hello there,
    I would like to know how can you have a breadcrumb structure similar to URLs ?
    Right now if you wish to capitalize on main keywords on your page, you must have them in Title and H1.
    Just like it is here: Pressage CD cristal
    However, in doing so, you multipy the number of times main keywords are displayed in your breadcrumb, just like it is here:
    You are here : Accueil / Pressage / Pressage CD / Pressage CD cristal. Where “Pressage” is displayed too many times.
    How can we change this to have a structure based upon URLs : http://s236519807.onlinehome.fr/wordpress/pressage/cd/cristal/
    Where we would have something like this: Accueil / Pressage / CD / Cristal

    Thanks alot for your help!
    Best regards,
    jhb

    • This topic was modified 10 years, 8 months ago by jhbretin.
    #242048

    Hey jhbretin!

    The breadcrumb will use the page title for the breadcrumb link. If you want to use a custom h1 title I recommend to make the title bar a h3 or h2 headline and to insert the h1 headline into the page content manually. Then you can i.e. use “CD” as page title for the breadcumb + headline and insert “Pressage CD cristal” as h1 headline into your content. To change the h1 heading to h2 or h3 by adding this code to your child theme file:

    
    add_filter('avf_title_args', 'change_page_title_heading', 10, 2);
    function change_page_title_heading($args,$id)
    {
            $args['heading'] = 'h3';
        return $args;
    }
    

    and insert your headline type instead of h3. Then use i.e. the “Special heading” element to add a h1 headline to your content.

    Cheers!
    Peter

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