New Landing How can we help? Themeforest Theme Support Dante Remove Sidebar Search Page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #67285
    ALDD
    Member
    Post count: 80

    Hello,

    Can you please let me know if the below code would be able to remove the sidebar that appears after a search results?

    I don’t any sidebar.

    <?php if ($sidebar_config == “left-sidebar”) { ?>
     
    <aside class=”sidebar left-sidebar span4″>
     <?php dynamic_sidebar($left_sidebar); ?>
     </aside>
     
    <?php } else if ($sidebar_config == “right-sidebar”) { ?>
     
    <aside class=”sidebar right-sidebar span4″>
     <?php dynamic_sidebar($right_sidebar); ?>
     </aside>
     
    <?php } else if ($sidebar_config == “both-sidebars”) { ?>
     
    <aside class=”sidebar right-sidebar span3″>
     <?php dynamic_sidebar($right_sidebar); ?>
     </aside>
     
    <?php } ?>
    

    Thank you for advising.
    Antonio

    #67331
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Theme Options -> Archive/category Options -> Sidebar Config -> Choose No sidebar and update options .

    Thanks 🙂
    With Best Regards
    Swift Ideas

    #67341
    ALDD
    Member
    Post count: 80

    Thank you Mohammad. That worked but the 404 page still has a sidebar.

    #67357
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please post 4o4.php code here so i can correct it .
    Thanks

    #67469
    ALDD
    Member
    Post count: 80

    Here it is Mohammad with thanks:

    <?php get_header(); ?>
    
    <?php
    	$options = get_option('sf_dante_options');
    	$default_page_heading_bg_alt = $options['default_page_heading_bg_alt'];
    ?>
    
    <div class="container">
    	<div class="row">
    	<div class="page-heading col-sm-12 clearfix alt-bg <?php echo $default_page_heading_bg_alt; ?>">
    		<div class="heading-text">
    			<h1><?php _e("404 - Page not found", "swiftframework"); ?></h1>
    		</div>
    	</div>
    	</div>
    </div>
    
    <div class="container">
    	<div class="inner-page-wrap row  clearfix">
    	
    		<article class="help-text col-sm-12">
    			<?php _e("Sorry but we couldn't find the page you are looking for. Please check to make sure you've typed the URL correctly. You may also want to search for what you are looking for.", "swiftframework"); ?> 
    			<form method="get" class="search-form" action="<?php echo home_url(); ?>/">
    				<input type="text" placeholder="<?php _e("Search", "swiftframework"); ?>" name="s" />
    			</form>
    			<a class="sf-button small accent slightlyroundedarrow" href="javascript:history.go(-1)" target="_self"><span><?php _e("Return to the previous page", "swiftframework"); ?></span><span class="arrow"></span></a>
    		</article>
    		
    		
    		
    	</div>
    </div>
    
    <!--// WordPress Hook //-->
    <?php get_footer(); ?>
    #67509
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have edited your code so you can use it .
    Thanks

    #67971
    ALDD
    Member
    Post count: 80

    Thank you…it works like a charm.

    #67983
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome . I’m glad that issue resolved .
    Thanks 🙂
    With Best Regards
    Swift Ideas

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

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

License required for the following item
Login and Registration Log in · Register