WordPress.org

Forums

[resolved] How to remove "pages" links from sidebar/navigation? (5 posts)

  1. greyfox81
    Member
    Posted 1 year ago #

    Hi,
    Some changes were made to my site which I'm unsure how to remove:

    All "pages" links are visible in looks to be a widget on the sidebar but I'm unable to find the location. At first I thought it was a text area in the widget but I didn't see them there.

    Example:
    When you scroll down all the way on the right side under "pages" it has links to each created page in this section but I do not want this here.

    Screenshot:
    http://i.imgur.com/YBsPRqR.png

    Live site:
    http://s455493928.onlinehome.us/

    Any help on removing these links from showing up in this section would be appreciated.

    Thank you!

  2. MBurlesonWP
    Member
    Posted 1 year ago #

    Are you sure it isn't a widget area? Or could it have been added to your functions.php without your knowledge? It looks like the Pages widget to me?

  3. greyfox81
    Member
    Posted 1 year ago #

    I'm fairly sure, here is the widgets area (already checked Text and it's not there)
    http://i.imgur.com/4X8sBWL.png

    I didn't think about functions.php though, I will check that and report back. Thanks for your time and that suggestion!

    *edit: functions.php is as follows:

    <?php
    /**
     * Functions - Framework gatekeeper
     *
     * This file defines a few constants variables, loads up the core framework file,
     * and finally initialises the main WP Framework Class.
     *
     * @package RedLine
     * @subpackage Functions
     */
    
    	// default header style
    	$header_defaults = array(
    	'default-image'          =>  get_template_directory_uri() .'/library/media/images/header.jpg',
    	'random-default'         => false,
    	'width'                  => 960,
    	'height'                 => 200,
    	'flex-height'            => false,
    	'flex-width'             => false,
    	'default-text-color'     => 'FFF',
    	'header-text'            => true,
    	'uploads'                => true,
    	'wp-head-callback'       => 'header_style',
    	'admin-head-callback'    => 'admin_header_style',
    	'admin-preview-callback' => '',
    );
    	add_theme_support( 'custom-header', $header_defaults ); // custom header
    
    	if ( ! isset( $content_width ) ) $content_width = 520; // set the global width of the media content
    
    	set_post_thumbnail_size( 150, 150 ); // 150 pixels wide by 150 pixels tall, box resize mode
    
    	load_theme_textdomain( 'redline' , get_template_directory() . '/lang' ); // load localization files
    
    	/* Blast you red baron! Initialise WP Framework */
    
    	require_once( get_template_directory() . '/library/framework.php' );
    		WPFramework::init();
    
    ?>
  4. WPyogi
    Forum Moderator
    Posted 1 year ago #

    I just installed that theme on a test site and those are widgets - so go to Appearance > Widgets - and find the "Left Widget Area" and put a widget there - Text if nothing else - and that will remove the Pages widget which is evidently there if you don't replace it with something else.

  5. greyfox81
    Member
    Posted 1 year ago #

    Perfect! Adding a blank text widget in Left Widget Area worked!

    Thank you both so much for your help, it's greatly appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic