WordPress.org

Forums

TwentyEleven - Hide/remove page title (19 posts)

  1. stokeyreggae
    Member
    Posted 3 years ago #

    Hi,
    Having problems with the titles on my pages, for some reason the titles are a larger font size on the other pages compared to my index page. This is not a problem really as I would like to remove the page titles from each page except the index page.

    I would also like to hide/remove the Reply button on my index page. Not even sure where it came from, it appeared after I deleted the speech bubble comment button.

    My blog address is : http://www.kirstiebenbow.co.uk

    Many thanks in advance.

  2. marlenafell
    Member
    Posted 3 years ago #

    I was wondering the same thing so I was messing with all the files in the TwentyEleven theme.

    If you edit the content-page.php file and remove <h1 class="entry-title"><?php the_title(); ?></h1>. That'll remove the page titles. Not sure how to do it for only some pages though. I like it done for all my pages. Hope this helps you somehow.

  3. vickie
    Member
    Posted 3 years ago #

    Thanks marlenafell ...it helps :)
    It'd be great if anyone figures out how to do it just for selected pages if they could update?

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    for selected pages, use can css and the output of body_class; i.e. the .page-id-237 css class, which is individual for each page (the number is the page ID).

    add something like this to style.css of the child theme:

    example:
    .page-id-237 .entry-title { display: none; }

    (obviously, you need to leave the line in content-page.php, mentioned in @marlenafell's reply)

  5. vickie
    Member
    Posted 3 years ago #

    Perfect, thanks a lot :)

  6. marlenafell
    Member
    Posted 3 years ago #

    Very nice alchmyth! :D Glad to help guys. Really loving TwentyEleven.

  7. stokeyreggae
    Member
    Posted 3 years ago #

    perfect thankyou!

    any idea how to remove the 'Reply' button on the post on my front page?
    thanks

    http://www.kirstiebenbow.co.uk

  8. alchymyth
    Forum Moderator
    Posted 3 years ago #

    @stokeyreggae
    have you disabled the comments for that post? and/or for posts in general?

  9. stokeyreggae
    Member
    Posted 3 years ago #

    I don't think I have, how do I go about this?

  10. alchymyth
    Forum Moderator
    Posted 3 years ago #

    a:
    http://codex.wordpress.org/Settings_Discussion_Screen

    b:
    and you also have to check if comments are enabled; either using 'quick-edit' for each post and page; or look below the post/page editor for a 'discussion' area where you can disable the comments for this post/page (if this does not show, click 'screen options' near the top right, tick 'discussion', then scroll back down where the 'discussion' area should now be visible.

    if comments are disabled, the 'reply' should not show.

  11. stokeyreggae
    Member
    Posted 3 years ago #

    Fantastic, thanks for the quick reply.
    All I needed to to was disable comments in quick edit on the post.

    thanks again!

  12. symbolism
    Member
    Posted 3 years ago #

    Yep - removing the <h1 class="entry-title"><?php the_title(); ?></h1> from the content-page.php in the theme worked.

    But I must stress that I created a child theme, and removed it from that.

    Basically, copy the content-page.php, insert it into your child theme's folder, and remove <h1 class="entry-title"><?php the_title(); ?></h1> from the child theme's version.

  13. MLM
    Member
    Posted 3 years ago #

    Alchymyth, is it possible to remove the "Reply" but still have comments show?

  14. brianmccallion
    Member
    Posted 3 years ago #

    I would like to remove Home and associated page from my twenty eleven theme.

    Brian

  15. esmi
    Forum Moderator
    Posted 3 years ago #

    Please post a new topic.

  16. onefortynine
    Member
    Posted 3 years ago #

    Yep - removing the <h1 class="entry-title"><?php the_title(); ?></h1> from the content-page.php in the theme worked.

    Hi Symbolism, i know this thread has been idle for a while but i was just wondering, removing that line of code, does it leave a gap above the Page text? I am trying to get a slider gallery to sit right underneath the menu but i seem to have a gap of about 20px.

    any tips?

  17. TheKAJG
    Member
    Posted 3 years ago #

    I too am trying to get a slider directly beneath the navigation. However, there is about a 70px gap between my navigation and content of my page. How can I remove that gap? -- I've looked at nearly every margin/padding css there is!

    Site template here.

  18. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 3 years ago #

    Please post your own topic TheKAJG as your post is not related directly to this topic

  19. TheVolkinator
    Member
    Posted 3 years ago #

    Hello
    I have removed the page titles but now there is a blank spot where the title is. Does anyone know how to get rid of this?

    http://thegraphiteinvestor.com/

Topic Closed

This topic has been closed to new replies.

About this Topic