Title frontpage

Home Forums WordPress Themes – Premium Preference Title frontpage

This topic contains 5 replies, has 34 voices, and was last updated by  fabian mach 6 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14114

    fabian mach
    Member

    Hello,
    Is there a way to remove the page title from the frontpage only?
    Thank You

    Fabian

    #18272

    Sushil Adhikari
    Moderator

    Removing a title gets a little trickier and WordPress doesn’t make this easy. There’s a few ways to do this:

    1. use a plugin that manages titles (including disabling)
    2. target the page in question with css to disable no title
    3. don’t enter any title in the title field of your page
    4. 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.

    #18273

    fabian mach
    Member

    I tried to add the code into the css of the childtheme without suceess
    I attach a snapshot of the editor

    Thanks for your help!
    Capture2.JPG

    Attachments:
    You must be logged in to view attached files.
    #18274

    Sushil Adhikari
    Moderator

    This 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

    #18277

    fabian mach
    Member

    This 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.JPG

    Attachments:
    You must be logged in to view attached files.
    #14115

    Sushil Adhikari
    Moderator

    Glad 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.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.