Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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

    #353248

    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

    #354283

    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.

    #354515

    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

    #355120
    This reply has been marked as private.
    #355590

    Hi!

    Your link is giving me a 500 internal server error. Check with your hosting provider to make sure everything is ok.

    Cheers!
    Elliott

    #357569
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Cart Icon (located top right)’ is closed to new replies.