WordPress.org

Support

Support » Themes and Templates » Remove Thematic Page Title

Remove Thematic Page Title

  • Hi,

    Please take a look here http://nib101.com/construct/print/

    I would like to remove the page title within the content and leave the menu title unchanged. Is this possible without affecting the post titles on the blog and if so how can i do it?

    I have looked on various sites and they all seem to point to the page.php but I can’t find the correct code to edit.

    Please help!

    Much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    @esmi

    Forum Moderator

    If this is only for a specific page, you may want to create a custom page template. The code you need to remove is:

    <h1 class="entry-title"><?php the_title(); ?></h1>

    hey nib,
    you can remove it using a custom page template, but as i see you are using Thematic, there is an easier way, just using the dynamic classes that are built into thematic.

    in your main css style file…just add

    body.page .entry-title {display:none;}

    this will hide all titles from pages.
    and the titles for blog posts will remain.

    you can be more specific and just target certain pages
    e.g
    body.slug-about .entry-title {display:none;}
    body.slug-web .entry-title {display:none;}

    hope this helps

    if you are still having problems email me
    jonnyjaniero(at)gmail(dot)com

    also, i may have missed it, but you dont seem to have a contact email on your site.

    dot_matrix,

    I tried adding “body.page .entry-title {display:none;}” to my style.css file in the child theme directory. No luck. I worked up the theme hierarchy to no avail (thematic and default). No luck. What do you mean by “main css style file”? The last file parsed should work, right? BTW, I have other entries in the child style.css that seem to work fine so WordPress is reaching the file.

    Thanks.

    Gary
    gary [at] velograf [dot] com

    @nib101,

    You can create a filter for it in your functions.php file:

    function remove_page_title( ){
    	$content = '';
    	return $content;
    }
    add_filter( 'thematic_page_title', 'remove_page_title' );
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Thematic Page Title’ is closed to new replies.
Skip to toolbar