Tagged: boxed layout, breadcrumb, layout, left sidebar, sidebar
-
AuthorPosts
-
February 22, 2016 at 4:23 pm #587249
Hello
We’ve chosen to go with the left sidebar on boxed layout. Please see http://mw.wpdeveloper.dk/
At no time is the breadcrumb visible.
That is not a problem at the frontpage (http://mw.wpdeveloper.dk/) or one of the subpages (http://mw.wpdeveloper.dk/mw-asketeknik/).
But if one goes to one of the product pages (a portofolio item that is setup under MW-Asketeknik, http://mw.wpdeveloper.dk/product/automatic-dust-sampler/), then it’s very problematic. If the user will enter the website from Google directly to that page, there’s no chance for the user to know which page this subpage belongs too.Using latest Envato with child theme. Fresh install on latest WordPress. No CSS changes. No extra functions.
No, we don’t want to use the breadcrumbs as a shortcode – breadcrumbs should work out-of-the-box (as they do if one uses top header instead of left menu).
February 22, 2016 at 4:39 pm #587254Hey webvizion!
I don’t see any breadcrumbs at all on your website and as you are using left sided menu there are no header options with breadcrumbs available for you. You would need to search a breadcrumb plugin in your case.
Best regards,
AndyFebruary 22, 2016 at 4:42 pm #587259That is exactly the problem – there are no breadcrumbs if I go with boxed layout with menu in the left sidebar.
But if I use the exact same theme (Envato), but choose to use top menu, then the breadcrumbs are visible.It can’t be true that we need extra plugins to show the breadcrumb just because we’ve changed 1 setting in the theme. The breadcrumb is already working, it’s just not displayed by the theme with that specific type of setup.
Please provide a fix.
All the best.
February 22, 2016 at 4:44 pm #587261Here’s link to the same theme with only 1 theme setting changed (menu in the top menu instead of the left sidebar):
As you can see, it works perfectly with that change, no other changes were made at all. But not with the menu in the left sidebar.
February 23, 2016 at 9:49 am #587605Fixed myself. No extra plugins were needed.
It is still our opinion that you provide a theme with lesser functionality if the user uses menu in the left/right sidebar instead of the top – the breadcrumbs won’t be shown in this particular case.
Yes, the breadcrumbs should be visible no matter of the menu location – and if you’re really worried if the user want breadcrumbs, you could always add an option to enable/disable it in the options.
All the best.
February 24, 2016 at 10:45 am #588280Hey!
Glad this is sorted! and if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
Cheers!
Vinay KashyapFebruary 24, 2016 at 12:27 pm #588312I’m afraid to sound a bit negative, but in our eyes this is not a feature, but a part of standart functionality that you’ve overseen / decided to remove / has not designed for that particular design view where the menu is located in the left or right sidebar.
All the best.
February 25, 2016 at 7:57 am #588799Hi,
Thanks for the feedback, much appreciated. Let’s hope improvements in this area will be included in a future version.
Regards,
RikardAugust 29, 2017 at 1:30 pm #845310Hi,
Could you please share with us HOW you fixed it yourself?
I’m at exacly the same place. and agree with it being a very basic funcitonality.
Though I must admit that Enfold is a great theme overall, if not the best – I do find a lot of basic things needing custom CSS or .PHP technical work..- This reply was modified 7 years, 3 months ago by mikicherniak.
August 31, 2017 at 7:56 am #846108August 31, 2017 at 12:29 pm #846202Hi!
If I’m not mistaken, this was achieved by adding the following code to the functions.php file:
add_shortcode( 'breadcrumb', 'enfold_customization_breadcrumb' ); function enfold_customization_breadcrumb(){ global $avia_config; if(!$id) $id = avia_get_the_id(); $header_settings = avia_header_setting(); $defaults = array( 'title' => get_the_title($id), 'subtitle' => "", //avia_post_meta($id, 'subtitle'), 'link' => get_permalink($id), 'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}</div></div>", 'class' => 'stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true), 'breadcrumb' => true, 'additions' => "", 'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/ ); if ( is_tax() || is_category() || is_tag() ) { global $wp_query; $term = $wp_query->get_queried_object(); $defaults['link'] = get_term_link( $term ); } else if(is_archive()) { $defaults['link'] = ""; } // Parse incomming $args into an array and merge it with $defaults $args = wp_parse_args( $args, $defaults ); $args = apply_filters('avf_title_args', $args, $id); //disable breadcrumb if requested $args['breadcrumb'] = true; //disable title if requested $args['title'] = false; // OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before. extract( $args, EXTR_SKIP ); if(empty($title)) $class .= " empty_title "; $markup = avia_markup_helper(array('context' => 'avia_title','echo'=>false)); if(!empty($link) && !empty($title)) $title = "<a href='".$link."' rel='bookmark' title='".__('Permanent Link:','avia_framework')." ".esc_attr( $title )."' $markup>".$title."</a>"; if(!empty($subtitle)) $additions .= "<div class='title_meta meta-color'>".wpautop($subtitle)."</div>"; if($breadcrumb) $additions .= avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true)); $html = str_replace('{class}', $class, $html); $html = str_replace('{title}', $title, $html); $html = str_replace('{additions}', $additions, $html); $html = str_replace('{heading}', $heading, $html); if(!empty($avia_config['slide_output']) && !avia_is_dynamic_template($id) && !avia_is_overview()) { $avia_config['small_title'] = $title; } else { return $html; } }
After that, place a text block on your page anywhere where you wish to display the breadcrumb.
The text block must contain this:
[breadcrumb]
Good luck :)
September 3, 2017 at 12:59 am #847255 -
AuthorPosts
- The topic ‘No breadcrumbs with left sidebar’ is closed to new replies.