Tagged: x
-
AuthorPosts
-
July 20, 2016 at 6:15 am #1095126
sharp-imageParticipantHello!
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
BoukeJuly 20, 2016 at 7:49 am #1095239
Paul RModeratorHi 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.phpThen 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
July 20, 2016 at 7:52 am #1095242
sharp-imageParticipantNice, 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!
July 20, 2016 at 9:41 am #1095369
sharp-imageParticipantMaybe a better explanation in the printscreen:
July 20, 2016 at 10:04 am #1095398
RupokMemberHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1095126 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
