• Hi,

    I’ve done some extensive searching here and out on Google, but I am not finding the solution to my problem. I am using the blue leaves theme ( https://www.kaushalsheth.com/blue-leaves-themes-released/ ) and I’m trying to change the Pages widget. I want to change the title from Pages to something else. Also, I want to remove the Home link from the list of pages.

    I’ve looked in the plugin folder and don’t find anything about widgets. I found a widget.php file in the include folder, but I have no idea what I’m looking at and don’t know what to change.

    By going into the theme options and clicking directly on the widget for Pages, I see there’s a place to add a title, but when I do, it doesn’t show up at all. And even if it did, I don’t know how to remove the home link.

    Help?

Viewing 11 replies - 1 through 11 (of 11 total)
  • contact the theme author first, thats always a good start to see if they can help you code with their changes they made

    Thread Starter susien

    (@susien)

    Thanks for your reply. I will do that. If anyone knows the fix here, though, I’d be ever so grateful. ??

    If you double click on the widget icon you get the config box.

    Thread Starter susien

    (@susien)

    Where is the widget icon?

    In your admin section go to Presentation > Widgets there is a drag and drop section for your widgets. The ones in the Sidebar have a little icon that you click and it brings up the options for that widget. This is where you type in your preferred widget title.

    Thread Starter susien

    (@susien)

    Oh, okay. I do know how to do that. However, when I type in a title, it doesn’t take effect. It does nothing.

    Did you “save changes”?

    Thread Starter susien

    (@susien)

    Yes. I can make the changes on other items like Categories, but the Pages one will not budge.

    That’s very strange. I can’t see anything in the theme that you;d cause that. There may be some interference from another plugin. What version of WP are you using?

    A fix would be to edit the widget code, which is obviously not optimal because it’s defeating the easy, convenient editing of the sidebar. However, to do so open up the widgets.php, which should be in wp-includes. Find

    function wp_widget_pages( $args ) {
    	extract( $args );
    	$options = get_option( 'widget_pages' );
    
    	$title = empty( $options['title'] ) ? __( 'Pages' ) : $options['title'];

    change the title from ‘Pages’ to ‘Your Title’, whatever you want your title to be.
    That should fix it no problems, but as I said, it defeats the simplicity of using widgets.

    Are the widgets still in widgets.php or are they defined somewhere else now. I can’t find them in mine.

    Thread Starter susien

    (@susien)

    Kristarella, thank you for trying to help me. It still didn’t work. I found that section in the widgets.php file, made the change, and it still didn’t take effect. This is so weird.

    A couple days ago, I had moved the Pages option to appear at the top of the page and everything worked fine up there. But as a sidebar widget, I’ve never been able to change anything. I’m creating this blog for a web design client of mine, and she only wants the pages to appear in the sidebar.

    Oh, and I’m using version 2.2.1 .

    By the way, I did contact the theme’s author, but I’ve yet to hear back from him.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to change title of sidebar widget’ is closed to new replies.