WordPress.org

Support

Support » Themes and Templates » [Resolved] [Theme: RedLine] Remove Admin & Pages from the sidebar?

[Resolved] [Theme: RedLine] Remove Admin & Pages from the sidebar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • kevinhaig
    Participant

    @kevinhaig

    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>
    kelemvor
    Participant

    @kelemvor

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Theme: RedLine] Remove Admin & Pages from the sidebar?’ is closed to new replies.