Support » Themes and Templates » [Erudite theme] Getting ride of "[No title]".

  • Resolved Keilya



    Just wondering if anyone knew how to configure the code such that for posts with no titles which currently displays itself as “[No Title]” to either 1) nothing at all (like the aside post format) or 2) the post ID?

    Any help would be greatly appreciated!

    I’m on WP 3.3.2 and Erudite 3.1.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Keilya


    Give me a link to your site so I can see the code for the template and I can tell you how to modify the css to hide the element. Without some type of demo to look at it’s really difficult to help you! 😉




    Thanks so much for the reply! Is it possible for you to get the theme from here? Comes with complete CSS and everything else!

    Okay, so this is going to be a little on the complicated side. I’m assuming what you want to do is suppress the title on a certain view rather than suppress all titles everywhere on the blog. So what you’re going to want to do is change the name of the title container on the view where you DONT want it to appear to something original. The demo calls everything on the homepage ‘entry-title’ so you’d want to change one or more of them to something like ‘entry-title-hidden’ , then in the CSS set the class .entry-title-hidden { display:none;} and so on and so forth.

    The problem with this is that it’s going to be uniform. Even posts that you give a title too will still not display that title when being called into that position where you have specified in your template that titles should be hidden.

    This is a very specific tweak that you’re going to have to make on a case by case basis and it’s really hard when I don’t know exactly what page/post template you’re trying to modify. Hope that helps.



    Ohh…I understand what you’re trying to say. It’s a little weird because I think this is the first time a theme has displayed something like (a rather quite unsightly) [NO TITLE] for an untitled post.

    In my experience with WordPress all these years, I do remember them either being a blank space or simply the Post ID for replacement. Or in general quite nicely taken care that I didn’t have to fuss with them. (Either that or my memory is fuzzy.)

    Thanks you for the time you took to look at it tho!



    I actually got it!

    Another search on google on how WP handles untitled posts led me to functions.php. Specifically, they mentioned how null-title posts can be handled in this file. So I took a look at the theme’s function.php and found this:

    // empty titles
    add_filter( 'the_title', 'erdt_empty_title' );
    function erdt_empty_title( $title ) {
    	if ( '' == $title )
    		$title = __('[NO TITLE]', 'erudite');
    	return $title;

    I then proceeded to simply delete the [NO TITLE] attribute and it worked like magic.

    Posting here for anyone who needs it. Should apply for all themes!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Erudite theme] Getting ride of "[No title]".’ is closed to new replies.