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

    Hi there,

    How would i change the breadcrumb so it reads the menu name instead of the page title?

    In the example below the breadcrumb should read “what we do” not CREATING THE WORKPLACE OF THE FUTURE

    http://uprisetestdomain.co.uk/paramount/who-we-are/

    Thanks,

    #127164

    Hi,

    I’m sorry but that’s imo not easily possible. This breadcrumb modification requires an advanced (time intensive) customization and this would be beyond the scope of our support forum. I’d use: http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items as a starting point.

    However you can use the avf_title_args filter to change the title on certain pages. I’d recommend to use it like:

    add_filter('avf_title_args', 'avia_change_title', 10, 2);

    function avia_change_title($args, $id)
    {
    $id = (int)$id;
    if($id == 61) $args['title'] = 'Who We Are';
    return $args;
    }

    and insert the code ad the bottom of functions.php

    #127165

    Worked perfectly thats so much.

    #127166

    Glad Peter could help :)

    Let us know if you have any other questions or issues.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Use Page name instead of title in Breadcrumb’ is closed to new replies.