• Resolved petematheson

    (@petematheson)


    I’m creating a new site (www.performanceacademyltd.com) which I’m creating custom pages for.
    So far I’ve edited the header and footer files, created a new page (/home) and pasted my content onto it.

    However, I still have the Page Title showing up.

    I’ve done it once before on my own wordpress blog but can’t remember how – and I remember it took me a while to search to find an answer!

    Can anyone point me to the quick fix to remove or hide the Title from this page?

    Thanks

Viewing 6 replies - 31 through 36 (of 36 total)
  • Thank you, but I don’t want to stand the risk of being search engine downranked.
    Hiding header elements with css is a major no-no with respects to that.

    William

    (@wisemasterchief)

    no problemo …

    go into text of your page element and add whatever heading you prefer over the page name. you would place it on first line. the issue is not to use page name for the title, correct? this will get it done.

    <h1>This is my page</h1>

    NOTE: do this while in HTML edit mode.

    this had been explained previously..

    BTW .. this thread title is how to hide page title

    it should be how to remove page name from title and use preferred custom title

    I have disabled the_title() in the child-theme content-page.php

    apparently not; or your changes have not been saved properly;

    you would need to remove this section:

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

    if you want to remove the page title only on the ‘biografi’ page, change the above section to:

    <?php if( !is_page('biografi') ) : ?>
        <header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header><!-- .entry-header -->
    <?php endif; ?>

    @alchymyth: thank you very much for looking into my problem.

    The section of content-page.php looks like this in Edit Themes in WordPress admin (after having looked on another file in the editor, thus, I can’t understand how it could not be saved properly):

    <?php /*
    * <header class=”entry-header”>
    * <h1 class=”entry-title”> <** php the_title(); **> </h1>
    * </header><!– .entry-header –>
    */ ?>

    I’ll have to debug through the php files to see if I can find a reason for the system to use another file than content-page.php (any suggestions are very welcome)

    I’ve found out why: the website in question has been moved (by way of copying) within the server, and for some reason the files shown in the editor in admin was not the ones that the system used for display.
    When provoked a bit (removing the files in old position) the system began using the files I expect it to (those in new position), and I got the expected results as adviced by alchymyth and other.
    Thank you very much for the help! ??

    wisemasterchief
    Thank you very mach

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘Hiding page title on twentyeleven theme.’ is closed to new replies.