Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1095126
    sharp-image
    Participant

    Hello!

    The setup structure I’m using from the X theme template is Ethos. We using Posts in a profile section. I want that users can go back from the posts to the profile. However the breadcrumbs nav them to the homepage instead of the profile. I thought i use this code in my child theme:

    <?php

    // =============================================================================
    // VIEWS/ETHOS/_BREADCRUMBS.PHP
    // —————————————————————————–
    // Breadcrumb output for Ethos.
    // =============================================================================

    ?>

    <?php if ( ! is_front_page() ) : ?>
    <?php if ( x_get_option( ‘x_breadcrumb_display’ ) == ‘1’ ) : ?>

    <div class=”x-breadcrumb-wrap”>
    <div class=”x-container max width”>
    <?php x_breadcrumbs(); ?>
    </div>
    </div>

    <?php endif; ?>
    <?php endif; ?>

    ========================

    And remove “is_front_page” for “get_user_profile_permalink” but i’m not allowed to do that. Is there some way to manage the setup from the breadcrumbs in the child theme dir?

    thanks
    Bouke

    #1095239
    Paul R
    Moderator

    Hi Bouke,

    Thanks for writing in!

    Yes, you can copy the file wp-content/themes/x/framework/views/ethos/_breadcrumbs.php to your child theme
    -> wp-content/themes/x-child/framework/views/ethos/_breadcrumbs.php

    Then edit the file that is in your child theme to achieve your desired result.

    Kindly review the links below

    https://community.theme.co/kb/how-to-setup-child-themes/
    https://community.theme.co/kb/customization-best-practices/

    Thanks

    #1095242
    sharp-image
    Participant

    Nice, thanks! But where must i place the slug: “get_user_profile_permalink” so the nav goes not to the homepage but back to the profile.

    Cheers!

    #1095369
    sharp-image
    Participant

    Maybe a better explanation in the printscreen:

    #1095398
    Rupok
    Member

    Hi there,

    Breadcrumbs will attach the link automatically. If you want to modify the functionality; that would be possible with more complex codes. Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.

  • <script> jQuery(function($){ $("#no-reply-1095126 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>