Tagged: breadcrumbs
-
AuthorPosts
-
August 25, 2022 at 4:39 pm #1362807
Hi,
I activate breadcrumbs in the enfold-settings (header), but they are only shown on sites with no image in the header. How can I see them also on sites with header-pictures?
And how can I disable breadcrumbs on the starting page?
I’ll send you examples in the private area.
Thanks for suportingTim
August 26, 2022 at 5:33 am #1362852Hey slikslok,
Thank you for the inquiry.
The breadcrumb will not display if the page is set to have a transparent header. You have to disable the header transparency to enable the breadcrumbs back. You can also create a custom shortcode for the breadcrumb and add it manually in the page.
function av_breadcrumbs_shortcode( $atts ) { return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) ); } add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );
Please check the documentation below for more info.
// https://kriesi.at/documentation/enfold/breadcrumbs/#insert-breadcrumbs-as-shortcodes
Best regards,
IsmaelAugust 26, 2022 at 8:30 am #1362859Hi Ismael,
Thanks for supporting. Works.
But Isn’t there another way? With your solution I have to do it manually on EVERY Site by hand, wright?And where can I change the text (also other text-elemts) „You are here“ (I only found, how to disable displaying it)?
Best Regards
TimAugust 30, 2022 at 5:08 pm #1363255Hi Tim,
1- Please add following code to bottom of Functions.php file of your child theme – https://kriesi.at/documentation/enfold/child-theme/ and replace page IDs (59 and 89) to match your page IDs
add_action('ava_after_main_container','new_ava_after_main_container'); function new_ava_after_main_container(){ if ( is_page( [59,89] ) ) { $bc_sc = Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) ); echo '<div class="stretch_full container_wrap alternate_color light_bg_color title_container"><div class="container">' . $bc_sc . '</div></div>'; } }
2- And add following code to functions.php file to change “You are here” text
add_filter('avia_breadcrumbs_args', 'avia_change_pre_text_breadcrumb', 10, 1); function avia_change_pre_text_breadcrumb($args){ $args['before'] = '<span class="breadcrumb-title">' . __( 'Your custom text:', 'avia_framework' ) . '</span>'; return $args; }
Best regards,
YigitAugust 31, 2022 at 8:38 am #1363312Hello Ygit,
thanks for supporting.
For Topic 1 I need a solution for EVERY site EXPECT start-page… Your solution means, I have to edit it by hand, when a editor creates new sites, right? Also I must insert 50 IDs….
Best Regards
TimAugust 31, 2022 at 11:30 am #1363335Hi Tim,
You can use the code as following and replace page ID “734” with your homepage ID so it would be applied on all pages except for the page with 734 ID
add_action('ava_after_main_container','new_ava_after_main_container'); function new_ava_after_main_container(){ if ( ! is_page( 734 ) ) { $bc_sc = Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) ); echo '<div class="stretch_full container_wrap alternate_color light_bg_color title_container"><div class="container">' . $bc_sc . '</div></div>'; } }
Best regards,
YigitSeptember 3, 2022 at 3:33 pm #1363746Hi Yigit,
works so far, but I can’t disable the background-color, so that ONLY the breadcrump trail will be shown AND the header background reaches to the top of viewport (there alway stays a fullwidth container width color). Any Ideas?As a second option I would like place the breadcrumb after the header (between Head and av-section-1, so that it occurs between the header-image and page tite in the whitespace.
I’m used, that breadrumbs entries are usable links (except the last entry /actual page). But even the entries are wrapped with a, they aren’t clickable?
Thanks for helping out. Links in the private area.
September 3, 2022 at 11:11 pm #1363763Hi,
Thank you for your patience and the link to your site, I believe you are referring to the green area that your breadcrumbs are now showing in:
to remove this please try this css:#main > .stretch_full.container_wrap.alternate_color.title_container { height: 0; }
After applying the css, please clear your browser cache and check.Best regards,
MikeSeptember 4, 2022 at 10:31 am #1363776Hello Mike, works perfect, thanks.
But what about the problem with the links? Only the last entry, ist active as a clickable link – it should be the exact other way? In a breadcrumb-trail it makes no sense that the last entry is clickable, i’m already there… So every entry of the trail should be a link, but not the last one. Can you clear this up, please?
Can I set the breadcrumb underneath the div#av_section_1 (or before div#after_section_1) in this construct:
add_action(‘ava_after_main_container’,’new_ava_after_main_container’);
function new_ava_after_main_container(){
if ( is_page( [59,89] ) ) {
$bc_sc = Avia_Breadcrumb_Trail()->get_trail( array( ‘separator’ => ‘/’, ‘richsnippet’ => true ) );
echo ‘<div class=”stretch_full container_wrap alternate_color light_bg_color title_container”><div class=”container”>’ . $bc_sc . ‘</div></div>’;
}
}September 4, 2022 at 2:27 pm #1363798Hi,
Thanks for the feedback, when I check the source code for your top breadcrumbs on your /praesidium-und-vorstand/
the first two have links and the last one, which is your current page, doesn’t, this is also true for the lower breadcrumbs after the first color section.
the lower breadcrumbs after the first color section:
When I tested I couldn’t click the top breadcrumbs because the z-index was too low, try this css to correct:#main > .title_container > .container > .breadcrumb { z-index: 502; }
After applying the css, please clear your browser cache and check.
Best regards,
MikeSeptember 5, 2022 at 11:22 am #1363895Hi,
this works, thanks.
Can you please answer also this question:
Can I set the breadcrumb underneath the div#av_section_1 (or before div#after_section_1) in this construct for ALL Sites (even the site color-section or not):
add_action(‘ava_after_main_container’,’new_ava_after_main_container’);
function new_ava_after_main_container(){
if ( is_page( [59,89] ) ) {
$bc_sc = Avia_Breadcrumb_Trail()->get_trail( array( ‘separator’ => ‘/’, ‘richsnippet’ => true ) );
echo ‘<div class=”stretch_full container_wrap alternate_color light_bg_color title_container”><div class=”container”>’ . $bc_sc . ‘</div></div>’;
}
}September 6, 2022 at 2:26 pm #1364055Hi,
Unfortunately, no. Using that code, we are only able to add it to the very top of the page. If you would like to display breadcrumbs after #av_section_1, you would need to manually insert them as shortcodes as Ismael suggested here – https://kriesi.at/support/topic/breadcrumbs-doesnt-work/#post-1362852
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.