-
AuthorPosts
-
November 18, 2014 at 1:23 pm #352933
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
November 18, 2014 at 9:31 pm #353248Hi 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!
ElliottNovember 20, 2014 at 2:55 pm #354283Hi,
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.November 20, 2014 at 10:26 pm #354515Hi!
It seems to be working fine on my XAMPP setup. Send us a WordPress login and we’ll take a look.
Best regards,
ElliottNovember 21, 2014 at 1:59 pm #355120This reply has been marked as private.November 21, 2014 at 9:35 pm #355590Hi!
Your link is giving me a 500 internal server error. Check with your hosting provider to make sure everything is ok.
Cheers!
ElliottNovember 25, 2014 at 3:47 pm #357569This reply has been marked as private. -
AuthorPosts
- The topic ‘Cart Icon (located top right)’ is closed to new replies.
