Hi,
If I hide ‘header on page’, as a consequence the cart icon disappears. Do you have a solution to keeping this retained please when header on page is selected ‘hidden’?
Also do you have CSS to show always, as opposed to mouse hover to display?
Thanks in advance
Hi user877!
First off comment out line 8 in /enfold/includes/helper-main-menu.php.
//if(isset($headerS['disabled'])) return;
And then add this to the bottom of your /enfold/functions.php file.
add_filter( 'wp_head', 'enfold_customization_display_cart' );
function enfold_customization_display_cart() {
$headerS = avia_header_setting();
if( isset( $headerS['disabled'] ) ) {
?>
<style type = "text/css">
#header_main .container {
display: none !important;
}
.dropdown_widget { display: block !important; opacity: 1 !important; }
</style>
<?php
}
}
Cheers!
Elliott
Hi,
in line 8 the code is slightly different
if(isset($headerS[‘disabled’])) return;
I did however comment this out as suggested.
I then added,
add_filter( ‘wp_head’, ‘enfold_customization_display_cart’ );
function enfold_customization_display_cart() {
$headerS = avia_header_setting();
if( isset( $headerS[‘disabled’] ) ) {
?>
<style type = “text/css”>
#header_main .container {
display: none !important;
}
.dropdown_widget { display: block !important; opacity: 1 !important; }
</style>
<?php
}
}
to child theme functions. Caused white screen.
I am already using,
<?php at the start of the functions code
and ?> at the end of my functions code.
Hi!
It seems to be working fine on my XAMPP setup. Send us a WordPress login and we’ll take a look.
Best regards,
Elliott
Hi!
Your link is giving me a 500 internal server error. Check with your hosting provider to make sure everything is ok.
Cheers!
Elliott