• Resolved portermonkey

    (@portermonkey)


    I want to remove a page name label from the page content but not from the navbar.

    Here is my site.
    And here is a screen shot illustrating what I want to remove.

    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • go to your “page.php” lookinf for

    <?php the_title(); ?> and remove it.

    Pay attention: check if pages have a custom template or is a single.php shared template.

    In this case removing <?php the_title(); ?> in single.php you will remove the title from <b>all posts</b>

    Thread Starter portermonkey

    (@portermonkey)

    how do i know if the pages have a custom or a single tmeplate?

    Thread Starter portermonkey

    (@portermonkey)

    And I do not want to remove the “label” from every page , just selected ones.

    thanks

    Thread Starter portermonkey

    (@portermonkey)

    Thought I would post this here incase anyone is searching with the same issue. I found a much safer and easier way than altering my page.php.

    The label I wanted remove was the “home” label from my front page. I could have just not named the page and it would not be there but then in my html sitemap the home page would not be there.

    so I added this to my child theme:

    h2.entry-title {
    display: none;
    }

    I got the idea from here on the WP.com site. I just changed the h1 to a h2.

    Thread Starter portermonkey

    (@portermonkey)

    Ok this is not resolved.

    The <h2> tag also controlled the title the first post on the blog page. So by getting rid of the “Home” label I also got rid of the title to the first post on my blog page..not good.

    Is there a way to differentiate the two?

    Thread Starter portermonkey

    (@portermonkey)

    I added the page id to the code so i put:

    .page-id-135 h2.entry-title {
    display: none;
    }

    In and it seems to be working. Is there anything I should be worried about doing this? I have no idea what I am doing?

    thanks to anyone reading down the thread this far and giving me some feedback

    Alwyn Botha

    (@123milliseconds)

    Remember; this only works on page 135

    .page-id-135

    Thread Starter portermonkey

    (@portermonkey)

    I only want it to work on that page. Is that a problem? does the “page id” # change or something?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Remove the page name label from the page’ is closed to new replies.