
-
AuthorPosts
-
January 29, 2019 at 5:44 pm #1060119
Hello,
we are using enfold theme. And on our site some page has bread crumb but some page dont hase bread crumb but I check all the page setttings are same..
http://plantsoltt.com/contact/ this page has bread crumb…
http://plantsoltt.com/about-us/ this page dont
can u help me out why its happening ?
thanks
February 1, 2019 at 11:49 am #1061483Hey BrandWeb,
Thanks for the login details, I’m not sure why that is happening unfortunately. Could you try to disable file compression and delete the old files under Enfold->Performance to see if that makes any difference please?
Best regards,
RikardFebruary 1, 2019 at 3:39 pm #1061584hi Rikard,
I have deleted old file from performance but still problem is there.
can u guys check why its happening its pretty for important for this client.
thanks
February 1, 2019 at 3:49 pm #1061585My guess is you’re using a transparent header there.
on the function: avia_header_setting in functions-enfold.php there is on line 831:
if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';
so if there is a transparent header the title_bar is hidden.
you can make a copy of that function in functions-enfold.php in your child-theme functions.php and comment that line out by setting two of them in front://
//if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';
February 1, 2019 at 4:17 pm #1061594read next post
February 1, 2019 at 4:22 pm #1061599because all functions which starts with if(!function_exists(‘XXXX’)) can be replaced by a copy in functions.php child-theme
so here we go – both comes to your child-theme functions.php
the whole function:
if(!function_exists('avia_header_setting')) { function avia_header_setting($single_val = false) { global $avia_config; if(isset($avia_config['header_settings']) && $single_val && isset($avia_config['header_settings'][$single_val])) return $avia_config['header_settings'][$single_val]; if(isset($avia_config['header_settings']) && !$single_val) return $avia_config['header_settings']; //return cached header setting if available $defaults = array( 'header_position' => 'header_top', 'header_layout' =>'logo_left menu_right', 'header_size' =>'slim', 'header_custom_size' =>'', 'header_sticky' =>'header_sticky', 'header_shrinking' =>'header_shrinking', 'header_title_bar' =>'', 'header_social' =>'', 'header_unstick_top' =>'', 'header_secondary_menu' =>'', 'header_stretch' =>'', 'header_custom_size' =>'', 'header_phone_active' =>'', 'header_replacement_logo' =>'', 'header_replacement_menu' =>'', 'submenu_visibility' => '', 'overlay_style' => 'av-overlay-side', 'header_searchicon' => true, 'header_mobile_activation' => 'mobile_menu_phone', 'phone' =>'', 'sidebarmenu_sticky' => 'conditional_sticky', 'layout_align_content' => 'content_align_center', 'sidebarmenu_widgets' => '', 'sidebarmenu_social' => 'disabled', 'header_menu_border' => '', 'header_style' => '', 'blog_global_style' => '', 'menu_display' => '', 'alternate_menu' => '', 'submenu_clone' => 'av-submenu-noclone', ); $settings = avia_get_option(); //overwrite with custom fields if they are set $post_id = avia_get_the_id(); if($post_id && is_singular()) { $custom_fields = get_post_custom($post_id); foreach($defaults as $key =>$default) { if(!empty($custom_fields[$key]) && !empty($custom_fields[$key][0]) ) { $settings[$key] = $custom_fields[$key][0]; } } //check if header transparency is set to true $transparency = post_password_required() ? false : get_post_meta($post_id, 'header_transparency', true); } $header = shortcode_atts($defaults, $settings); $header['header_scroll_offset'] = avia_get_header_scroll_offset($header); //if sidebar main menu is active set the header accordingly and return the sidebar header if($header['header_position'] != "header_top") return avia_header_setting_sidebar($header, $single_val); //------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------ //if header main menu is above the logo set a var to indicate that and disable transparency and shrinking if( strpos( $header['header_layout'] , 'top_nav_header' ) !== false ) { $header['header_menu_above'] = true; $header['header_shrinking'] = 'disabled'; $transparency = false; } //set header transparency $header['header_transparency'] = ""; if(!empty($transparency)) $header['header_transparency'] = 'header_transparency'; if(!empty($transparency) && strpos($transparency, 'glass')) $header['header_transparency'] .= ' header_glassy'; if(!empty($transparency) && strpos($transparency, 'with_border')) $header['header_transparency'] .= ' header_with_border'; if(!empty($transparency) && strpos($transparency, 'hidden')) $header['disabled'] = true; if(!empty($transparency) && strpos($transparency, 'scrolldown')) { $header['header_transparency'] .= ' header_scrolldown'; $header['header_sticky'] = 'header_sticky'; } //deactivate title bar if header is transparent //if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar'; //sticky and shrinking are tied together if($header['header_sticky'] == 'disabled') { $header['header_shrinking'] = 'disabled'; $header['header_scroll_offset'] = 0; } //if the custom height is less than 70 shrinking doesnt really work if($header['header_size'] == 'custom' && (int) $header['header_custom_size'] < 65) $header['header_shrinking'] = 'disabled'; //deactivate icon menu if we dont have the correct header if(strpos(avia_get_option('header_layout'), 'main_nav_header') === false) $header['menu_display'] = ""; if($header['menu_display'] == 'burger_menu') { $header['header_menu_border'] = "";} if(avia_is_burger_menu()) { $header['header_mobile_activation'] = "mobile_menu_tablet"; } //create a header class so we can style properly $header_class_var = array( 'header_position', 'header_layout', 'header_size', 'header_sticky', 'header_shrinking', 'header_stretch', 'header_mobile_activation', 'header_transparency', 'header_searchicon', 'header_unstick_top', 'header_menu_border', 'header_style' ); $header['header_class'] = ""; foreach($header_class_var as $class_name) { if(!empty($header[$class_name])) { if($header[$class_name] == "disabled") $header[$class_name] = $class_name."_disabled"; $header['header_class'] .= " av_".str_replace(' ',' av_',$header[$class_name]); } } //set manual flag if we should display the top bar $header['header_topbar'] = false; if(strpos($header['header_social'], 'extra_header_active') !== false || strpos($header['header_secondary_menu'], 'extra_header_active') !== false || !empty($header['header_phone_active'])){ $header['header_topbar'] = 'header_topbar_active'; } //set manual flag if the menu is at the bottom $header['bottom_menu'] = false; if(strpos($header['header_layout'],'bottom_nav_header') !== false) { $header['bottom_menu'] = 'header_bottom_menu_active'; } else { $header['header_class'] .= " av_bottom_nav_disabled "; } //header class that tells us to use the alternate logo if(!empty($header['header_replacement_logo'])) { $header['header_class'] .= " av_alternate_logo_active"; if(is_numeric($header['header_replacement_logo'])) { $header['header_replacement_logo'] = wp_get_attachment_image_src($header['header_replacement_logo'], 'full'); $header['header_replacement_logo'] = $header['header_replacement_logo'][0]; } } //header class that tells us to use the alternate logo if(empty($header['header_menu_border'])) { $header['header_class'] .= " av_header_border_disabled"; } $header = apply_filters('avf_header_setting_filter', $header); //make settings available globaly $avia_config['header_settings'] = $header; if(!empty($single_val) && isset($header[$single_val])) return $header[$single_val]; return $header; } }
to shift then the breadcrump under the first container:
function change_position(){ ?> <script> (function($){ $('#main .title_container').insertAfter('.html_header_transparency div.avia-builder-el-0'); })(jQuery); </script> <?php } add_action('wp_footer', 'change_position');
February 1, 2019 at 4:36 pm #1061604maybe there is a child-theme possibility now to comment that line out – but in former times i asked and searched for a solution – there was no other way to make it.
February 1, 2019 at 5:01 pm #1061608OR
if you only want the breadcrumb you can place it by hand with a shortcode ( but without the title on the left)
function av_breadcrumbs_shortcode( $atts ) { return avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true)); } add_shortcode( 'bread_crumb', 'av_breadcrumbs_shortcode' );
use it then as
[bread_crumb]
February 1, 2019 at 9:18 pm #1061719Hi,
thanks for your suggestion. I did try this but nothing worked yet. Also the cause you are talking about thats not make any sense for me because on contact page there is breadcrumb with same settings also news page has bread crumb also.
thanks
February 1, 2019 at 11:35 pm #1061775Hi,
I tried to implement 3rd party breadcrumb. but I having another issue with this theme.
I fI make any changes on header.php file then a
coding apearig on header " /> like this
<?php if ( ! defined('ABSPATH') ){ die(); } global $avia_config; $lightbox_option = avia_get_option( 'lightbox_active' ); $avia_config['use_standard_lightbox'] = empty( $lightbox_option ) || ( 'lightbox_active' == $lightbox_option ) ? 'lightbox_active' : 'disabled'; /** * Allow to overwrite the option setting for using the standard lightbox * Make sure to return 'disabled' to deactivate the standard lightbox - all checks are done against this string * * @added_by G端nter * @since 4.2.6 * @param string $use_standard_lightbox 'lightbox_active' | 'disabled' * @return string 'lightbox_active' | 'disabled' */ $avia_config['use_standard_lightbox'] = apply_filters( 'avf_use_standard_lightbox', $avia_config['use_standard_lightbox'] ); $style = $avia_config['box_class']; $responsive = avia_get_option('responsive_active') != "disabled" ? "responsive" : "fixed_layout"; $blank = isset($avia_config['template']) ? $avia_config['template'] : ""; $av_lightbox = $avia_config['use_standard_lightbox'] != "disabled" ? 'av-default-lightbox' : 'av-custom-lightbox'; $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled'; $sidebar_styling = avia_get_option('sidebar_styling'); $filterable_classes = avia_header_class_filter( avia_header_class_string() ); $av_classes_manually = "av-no-preview"; /*required for live previews*/ /** * Allows to alter default settings Enfold-> Main Menu -> General -> Menu Items for Desktop * @since 4.4.2 */ $is_burger_menu = apply_filters( 'avf_burger_menu_active', avia_is_burger_menu(), 'header' ); $av_classes_manually .= $is_burger_menu ? " html_burger_menu_active" : " html_text_menu_active"; /** * Add additional custom body classes * e.g. to disable default image hover effect add av-disable-avia-hover-effect * * @since 4.4.2 */ $custom_body_classes = apply_filters( 'avf_custom_body_classes', '' ); /** * @since 4.2.3 we support columns in rtl order (before they were ltr only). To be backward comp. with old sites use this filter. */ $rtl_support = 'yes' == apply_filters( 'avf_rtl_column_support', 'yes' ) ? ' rtl_columns ' : ''; ?><!DOCTYPE html> <html <?php language_attributes(); ?> class="<?php echo "html_{$style} ".$responsive." ".$preloader." ".$av_lightbox." ".$filterable_classes." ".$av_classes_manually ?> "> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <?php /* * outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives * located in framework/php/function-set-avia-frontend.php */ if (function_exists('avia_set_follow')) { echo avia_set_follow(); } ?> <!-- mobile setting --> <?php if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">'; ?> <!-- Scripts/CSS and wp_head hook --> <?php /* Always have wp_head() just before the closing </head> * tag of your theme, or you will break many plugins, which * generally use this hook to add elements to <head> such * as styles, scripts, and meta tags. */ wp_head(); ?> </head> <body id="top" <?php body_class( $custom_body_classes . ' ' . $rtl_support . $style." ".$avia_config['font_stack']." ".$blank." ".$sidebar_styling); avia_markup_helper(array('context' => 'body')); ?>> <?php do_action( 'ava_after_body_opening_tag' ); if("av-preloader-active av-preloader-enabled" === $preloader) { echo avia_preload_screen(); } ?> <div id='wrap_all'> <?php if(!$blank) //blank templates dont display header nor footer { //fetch the template file that holds the main menu, located in includes/helper-menu-main.php get_template_part( 'includes/helper', 'main-menu' ); } ?> <div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'> <?php if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container']; do_action('ava_after_main_container'); ?> <?php if ( !is_front_page() ) : ?> <div class="stretch_full container_wrap alternate_color light_bg_color title_container"> <div class="container"> <div class="breadcrumb breadcrumbs"> <?php echo do_shortcode( '[breadcrumb]' );?> </div></div></div> <?php endif; ?>
this is the change i made. even I delete the changes from header.php that pre coding still there
thanks
February 2, 2019 at 4:18 am #1061832i’m participant as you so i do not see your private content.
your page was down or under maintainance mode – so i only can suggest what was happening
see how it works on my testinstallation: https://webers-testseite.de/ostler/breadcrumb-with-transparency-header/
Most of the problems seeing no breadcrumb comes from that line mentioned above.
a livelink working to see what is the reason would be nice to have-
This reply was modified 6 years, 1 month ago by
Guenni007.
February 2, 2019 at 5:21 am #1061849yes I can not give u login details also cant make site live because of company privacy
So I am asking to help from enfold developer center.
February 2, 2019 at 5:22 am #1061850On my site its showing on some page but for some pages with same settings
February 2, 2019 at 4:37 pm #1062017I found the solutions. I had to use 3rd party bread crumb and also i had to remove some bad coding from header.php. Now all ok
thanks
February 3, 2019 at 7:35 am #1062124 -
This reply was modified 6 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.