• Resolved lmxc

    (@lmxc)


    Hello, I would like to display in Breadcrumb the full “path” of a SubPage which is child of another one, eg.:
    Menu is
    PrimaryPage
    |-SubPage01
    |-SubPage02
    In SubPage01 actually Breadcrumb is HOME/SubPage01 and I would like to show HOME/PrimaryPage/SubPage01
    Is it possible?
    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author themevision

    (@themevision)

    Hello, @lmxc!

    For now isn’t possible, but we will implement this feature in some of next theme updates.

    Thank you for the patience.

    Best Regards

    Thread Starter lmxc

    (@lmxc)

    Thank you, in the meantime if I will be able to implement a solution I will publish it here.
    Regards

    Theme Author themevision

    (@themevision)

    Hi.

    I will appreciate that.

    Thank you.

    Best Regards

    Thread Starter lmxc

    (@lmxc)

    Hello,
    I tried this for single pages and it is working:
    in wp-content/themes/agama/framework/class-agama-breadcrumb.php
    at line 73 was
    /**
    * Is Single or Is Page
    *
    * @since 1.2.9
    */
    private static function is_single_or_page() {
    global $post;
    $h1 = sprintf( ‘<h1>%s</h1>’, $post->post_title );
    $output = sprintf( ‘<li class=”active”>%s‘, $post->post_title );

    self::html_markup( $h1, $output );
    }
    and I changed to
    private static function is_single_or_page() {
    global $post;
    if (!empty($post->post_parent)) {
    $h1 = sprintf( ‘<h1>%s</h1>’, $post->post_title );
    $output = sprintf( ‘<li class=”active”>%s‘, get_the_title($post->post_parent) ).sprintf( ‘<li class=”active”>%s‘, $post->post_title );
    self::html_markup( $h1, $output );
    } else {
    $h1 = sprintf( ‘<h1>%s</h1>’, $post->post_title );
    $output = sprintf( ‘<li class=”active”>%s‘, $post->post_title );

    self::html_markup( $h1, $output );
    }
    }

    Merry Christmas and Happy New Year !

    Theme Author themevision

    (@themevision)

    Hello, @lmxc!

    Thank you! ??

    Thanks but there is little problem that = We cant open the pages from breadclumb with that way only see the breadcrumps… but cant go to previous pages exc from here.

    also only 1 chield pages seen..

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Breadcrumb full “path” for SubPages’ is closed to new replies.