-
AuthorPosts
-
July 25, 2020 at 1:29 pm #1233197
Hallo,
i have added the breadcrum as short code in a colored layout element to have the whole line in color. All works fine except the bottom height. The breadcrumb line should be 30px height but it seems that the layout element can not be adjusted in height .. do you have any idea?July 26, 2020 at 5:44 am #1233285Hey Sebastian,
Please add this CSS code in Quick CSS, located in Enfold > General Styling:
#breadcrumbrow { min-height: 50px !important; }
You can change the minimum height to lower value but since I noticed you have top and bottom padding of 10px, the overall height should be atleast 50px.
Best regards,
NikkoJuly 26, 2020 at 1:00 pm #1233326Cool, thx, that works fine
July 26, 2020 at 5:38 pm #1233367Hi xeovision,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaJuly 29, 2020 at 5:17 pm #1233990One more issue appears with the breadcrumb.. it works fine but when i click on the single post the breadcrumb shortcode dissapear. It seems that singe post page is generated ..how can i add the breadcrum below the image like in the overview page?
July 31, 2020 at 10:06 am #1234332Hi xeovision,
I can’t find a single post on your site (could not find from the main menu) but I think the reason the shortcode is not appearing is if it isn’t added in the single post, it doesn’t take the overview page’s style by default :(
Best regards,
NikkoJuly 31, 2020 at 10:14 am #1234337Hi .. yes, now, i have added some news.
Is it possible to add the breadcrum in the function.php where the large header image is placed?
I mean add some additional code ?August 2, 2020 at 3:44 pm #1234625Hi xeovision,
It’s possible to add the breadcrumbs but not in functions.php instead in single.php (this will affect all single posts and custom post types) or single-post.php file.
Best regards,
NikkoAugust 3, 2020 at 10:08 am #1234768Ok, understand but what to add? I think i need the php line right?
..and in which line?August 4, 2020 at 4:46 pm #1235117Hi xeovision,
I have checked your site again and noticed that the large header image in your single post page that is wrapped in a div with a class of single-header-image is custom made and not part of the Enfold theme. I think you can just put the shortcode below it or if it’s in a php format then you can use do_shortcode() to run it.
To get the shortcode for that entire breadcrumb row you have, you can enable ALB Debugger https://kriesi.at/documentation/enfold/intro-to-layout-builder/#debug-mode then a textarea will appear below your content (in the backend) which contains the shortcodes used to render that breadcrumb section.
I hope this helps, if you need further assistance please let us know.
Best regards,
NikkoAugust 5, 2020 at 12:29 am #1235255With the debug modus i cann see the shortcodes of the page but that does not help ..
This is the function code for the image .. can i add here the beadcrum function like this?
But it should be something that generate the breadcrumbfunction add_custom_header_image() {
if ( is_single() || is_archive() ) { ?>
<div class=”single-header-image”>/wp-content/uploads/2020/07/area.jpg”></div>
<div>[av_breadcrumbs]</div>
<?php }
}
add_action( ‘ava_after_main_title’, ‘add_custom_header_image’, 10 );August 5, 2020 at 4:35 am #1235281Hi xeovision,
Thanks for sharing the code.
Please do it like this in the breadcrumbs part:<div><?php echo do_shortcode('[av_breadcrumbs]'); ?></div>
However I suggest you include the section as well in the shortcode.
Best regards,
Nikko- This reply was modified 4 years, 3 months ago by Nikko. Reason: code correction
August 5, 2020 at 10:09 am #1235358Got it.. thanks .. works as expected.
Line working with closing “)” :)August 5, 2020 at 4:26 pm #1235459Hi xeovision,
Thanks for that, I have corrected the code above :)
We’re glad to hear that it’s working now.
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Height of Breadcrumb in Element’ is closed to new replies.