stokeyreggae
Member
Posted 10 months 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.
marlenafell
Member
Posted 10 months 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.
vickie
Member
Posted 10 months 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?
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)
vickie
Member
Posted 10 months ago #
marlenafell
Member
Posted 10 months ago #
Very nice alchmyth! :D Glad to help guys. Really loving TwentyEleven.
stokeyreggae
Member
Posted 10 months ago #
perfect thankyou!
any idea how to remove the 'Reply' button on the post on my front page?
thanks
http://www.kirstiebenbow.co.uk
@stokeyreggae
have you disabled the comments for that post? and/or for posts in general?
stokeyreggae
Member
Posted 10 months ago #
I don't think I have, how do I go about this?
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.
stokeyreggae
Member
Posted 10 months ago #
Fantastic, thanks for the quick reply.
All I needed to to was disable comments in quick edit on the post.
thanks again!
symbolism
Member
Posted 9 months 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.
Alchymyth, is it possible to remove the "Reply" but still have comments show?
brianmccallion
Member
Posted 3 months ago #
I would like to remove Home and associated page from my twenty eleven theme.
Brian
onefortynine
Member
Posted 2 months 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?
TheKAJG
Member
Posted 2 months 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.
Please post your own topic TheKAJG as your post is not related directly to this topic
TheVolkinator
Member
Posted 2 days 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/