Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 suporting

    Tim

    #1362852

    Hey 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,
    Ismael

    #1362859

    Hi 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
    Tim

    #1363255

    Hi 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,
    Yigit

    • This reply was modified 2 years, 2 months ago by Yigit.
    • This reply was modified 2 years, 2 months ago by Yigit.
    #1363312

    Hello 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
    Tim

    #1363335

    Hi 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,
    Yigit

    #1363746

    Hi 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.

    #1363763

    Hi,
    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:
    2022-09-03_004.jpg
    to remove this please try this css:

    #main > .stretch_full.container_wrap.alternate_color.title_container {
    	height: 0;
    }

    2022-09-03_005.jpg
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1363776

    Hello 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>’;
    }
    }

    #1363798

    Hi,
    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.
    2022-09-04_080414.jpg
    the lower breadcrumbs after the first color section:
    2022-09-04_007.jpg
    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,
    Mike

    #1363895

    Hi,

    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>’;
    }
    }

    #1364055

    Hi,

    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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.