New Landing How can we help? Themeforest Theme Support Dante Full Width Header with Boxed Layout

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #48138
    Brookebot
    Member
    Post count: 112

    I’m using a boxed layout because I like being able to use different outer and inner page backgrounds. I’m having trouble figuring out how to make the header full width. I’ve tried all header combinations in the settings, but it seems that the boxed layout forces a boxed header? What can I do to get a full width header while using the boxed layout?

    #49077
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit header.php at line 215

    Find this code 
    <?php  
    			// MOBILE MENU
    			echo sf_mobile_menu();
    		?>
    
    Replace with 
    <?php  
    			// MOBILE MENU
    			echo sf_mobile_menu();
    		?>
    <div id="container">
    		
    			
    			<!--// HEADER //-->
    			<div class="header-wrap<?php echo $header_wrap_class; ?>">
    				
    				<?php if ($enable_top_bar) { ?>
    					<!--// TOP BAR //-->
    					<?php echo sf_top_bar(); ?>
    				<?php } ?>	
    					
    				<div id="header-section" class="<?php echo $header_layout; ?> <?php echo $logo_class; ?>">
    					<?php echo sf_header($header_layout); ?>
    				</div>
    
    			</div>
    		</div>
    
    AND please remove this code from  line 222 t0 235
    
    <!--// HEADER //-->
    			<div class="header-wrap<?php echo $header_wrap_class; ?>">
    				
    				<?php if ($enable_top_bar) { ?>
    					<!--// TOP BAR //-->
    					<?php echo sf_top_bar(); ?>
    				<?php } ?>	
    					
    				<div id="header-section" class="<?php echo $header_layout; ?> <?php echo $logo_class; ?>">
    					<?php echo sf_header($header_layout); ?>
    				</div>
    
    			</div>
    		</div>
    
    Please take a backup of header.php and take this action . It will make header as you desire .

    With Best Regards
    SwiftIdeas Themes

    #49091
    Brookebot
    Member
    Post count: 112

    Works beautifully Mohammad! Thank you!

    For any other user who reads this, you should note that you need to copy the header.php file from the Dante parent theme and paste it into the Dante child theme. Then, edit the child theme’s header.php (with the code Mohammad provided) so that you won’t lose the changes when you update to the latest version of Dante.

    #49103
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Thankyou for your explanation . SwiftIdeas team always suggest to make changes in child theme .

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register