Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #663059

    Let’s say I have a page with the title “Get to know Sampler Consulting!” but I want the name of that page in the breadcrumb to say something else. Is there a filter that I can use to override the title in the breadcrumb?

    Thanks!

    #664364

    Hey Kevin,

    Sorry for the late reply, at the moment there is no easy way to do this. Please try installing Yoast SEO plugin https://wordpress.org/plugins/wordpress-seo/

    Best regards,
    Vinay

    • This reply was modified 8 years, 4 months ago by Vinay.
    #664420

    In what way does Yoast SEO give the ability to override the breadcrumb content?

    #664971

    Hi,

    Please add following code to Functions.php file of your child theme in Appearance > Editor

    add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
    function fix_single_post_title($args,$id)
    {
        if (is_page(59))
        {
            $args['title'] = "Here is your custom title";
            $args['link'] = get_permalink($id);
            $args['heading'] = 'h1';
        }
    
        return $args;
    }

    And change page ID accordingly

    Best regards,
    Yigit

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