WordPress.org

Ready to get started?Download WordPress

Forums

Pages Widget Can I have no Title? (3 posts)

  1. moonliner
    Member
    Posted 5 years ago #

    Is there a way to have no title/header for the Pages widget? (Just list the page links). If I leave it blank it displays "Pages."

  2. chrisdoth
    Member
    Posted 4 years ago #

    Some outdated advice here, http://askowen.info/2007/05/how-do-i-display-a-wordpress-widget-without-a-title/

    other than that only this hack which still leaves a blank space;

    http://forum.bytesforall.com/showthread.php?t=2751

  3. AdrianApan
    Member
    Posted 4 years ago #

    You can modify this directly in the core of WP. Just go the /wp-includes directory and open default-widgets.php

    On line 25 you will find the function related to this default WP plugin. Make your changes there save and upload to your server.

    Default code:

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( 'Pages' ) : $instance['title'], $instance, $this->id_base);

    Change to this:

    $title = apply_filters('widget_title', empty( $instance['title'] ) ? __( '' ) : $instance['title'], $instance, $this->id_base);

    This should do the job.

Topic Closed

This topic has been closed to new replies.

About this Topic