Home › Forums › WordPress Themes – Premium › Preference › Title frontpage
- This topic has 5 replies, 34 voices, and was last updated 10 years ago by
Sushil Adhikari.
-
AuthorPosts
-
September 10, 2013 at 8:08 pm #14114
fabian mach
MemberHello,
Is there a way to remove the page title from the frontpage only?
Thank YouFabian
September 10, 2013 at 8:25 pm #18272Sushil Adhikari
ModeratorRemoving a title gets a little trickier and WordPress doesn’t make this easy. There’s a few ways to do this:
- use a plugin that manages titles (including disabling)
- target the page in question with css to disable no title
- don’t enter any title in the title field of your page
- modify the theme’s template and remove the title (but this disabled it for all pages)
The best way would be to use css. When you view your page source code, your page for the home page has a page ID that gets added to the body tag. In your case, yours has this ID of: page-id-542
So you would add some css to your theme’s style.css file such as this:
#page-id-542 .entry-title {display:none;}
That basically tells your browser not to show the page title (which has a class of .entry-title) on the page that has the ID number of 542. The title will still show in the source code but it won’t be seen by the visitor.
I would recommend you read my tutorial about child themes, because then you can use a child theme to make these kind of modifications to your theme files including the style.css. If you are using JetPack, it has a nice css editor that you can make custom changes to css without using a child theme.
September 11, 2013 at 1:23 am #18273fabian mach
MemberI tried to add the code into the css of the childtheme without suceess
I attach a snapshot of the editorThanks for your help!
Capture2.JPGAttachments:
You must be logged in to view attached files.September 11, 2013 at 2:21 am #18274Sushil Adhikari
ModeratorThis should work:
#post-542 .entry-title { display: none; }
Quick Question….when you uploaded your attachment screenshot, did you save it with an uppercase file extension like this: Capture2.JPG or Capture2.jpg
September 11, 2013 at 9:03 pm #18277fabian mach
MemberThis worked like a charm!
as for the upload file, i selected the image generated by the snipping tool in windows7.
I did not change anything.
I will try again with this reply
Capture2.JPGAttachments:
You must be logged in to view attached files.September 11, 2013 at 9:55 pm #14115Sushil Adhikari
ModeratorGlad it worked… as for the attachment, it’s not showing. I just did a check on Google to find this is an ongoing issue that Microsoft has not addressed. The snipping tool in windows 7 is creating the uppercase .JPG extension (which is actually a bad thing as apache (a web host server thing), does not like. So hopefully anyone reading this post, will not use the snipping tool for screenshots.
Anyway, I’m glad the solution above worked for your title.
-
AuthorPosts
- You must be logged in to reply to this topic.