Forums

RedLine
[resolved] Remove Admin & Pages from the sidebar? (3 posts)

  1. kelemvor
    Member
    Posted 9 months ago #

    Just installed the Redline theme and I'm wondering how I can get rid of the Pages and Admin widget type sections on the right side. I can add a new widget to the side but those other ones are still there.

    Any help would be great.

    Thanks.

    http://wordpress.org/extend/themes/redline/

  2. kevinhaig
    Member
    Posted 9 months ago #

    If you are comfortable editing files.

    Save sidebar.php to a backup file, in case you need to restore it.

    Call up sidebar.php in a text editor

    It looks like :

    <div id="secondary" class="aside" role="complementary">
    	<div id="sidebar_top">
    		<?php get_sidebar( 'top' ) ?>
    	</div>
    
    	<div id="sidebar_bottom">
    		<div id="sidebar_left">
    		<?php //get_sidebar( 'left' ) ?>
    		</div>
    
    		<div id="sidebar_right">
    		<?php //get_sidebar( 'right' ) ?>
    
    </div></div></div>

    Delete

    <div id="sidebar_bottom">
    		<div id="sidebar_left">
    		<?php //get_sidebar( 'left' ) ?>
    		</div>
    
    		<div id="sidebar_right">
    		<?php //get_sidebar( 'right' ) ?>
    
    </div></div>

    So the final file looks like :

    <?php
    /**
     * Template: Sidebar.php
     *
     * @package RedLine
     * @subpackage Template
     */
    ?>
    	<!--BEGIN #secondary .aside-->
    <div id="secondary" class="aside" role="complementary">
    	<div id="sidebar_top">
    		<?php get_sidebar( 'top' ) ?>
    	</div>
    </div>
  3. kelemvor
    Member
    Posted 9 months ago #

    I'm fine editing the files, I just couldn't figure out which ones to modify. I was in sidebar-right and could get rid of the admin part but couldn't find the pages part.

    Your edits worked fine.

    Thanks.

Reply

You must log in to post.

About this Theme

About this Topic

Tags