WordPress.org

Ready to get started?Download WordPress

Forums

Preference Lite
[resolved] Remove page titles (12 posts)

  1. mcacovic
    Member
    Posted 1 year ago #

    First off - theme is really really really awesome. Nicely done!

    Is there a way to remove the page titles from each page? For example, the Home page has "Home" at the top of the page.

    Thanks!

    Mark.

  2. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    wow... you're like the 3rd person in one week to request this, lol. I find it interesting because over time, I've encountered many asking about this. I think I will start adding a setting to disable page titles, starting with my next theme.

    Anyway, thanks for the comment about my theme, but to try and help you out here, I know there's a plugin that manages titles that will do what you want but don't know the name or a specific one. The other method is to modify the theme files where the titles are for pages (which I recommend using a child theme; I have that available on my site's setup tutorials for this theme) so that whenever there's an update, you won't lose your changes.

    If you opt in to modify, you would need to either comment out the <h1 class="entry-title"> from the content-page.php and the theme's page templates, or remove the code.

  3. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    Actually, there's a few plugins I just looked at. Type in to search for "hide page titles" and see what plugins show up

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Here's another way to hide those using CSS -

    h1.entry-title {
            position: absolute !important;
    	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    	clip: rect(1px, 1px, 1px, 1px);
    }

    You can add that to custom CSS (add via a plugin).

  5. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    Wouldn't that also affect the post titles too? They are also using that class, but I think Mark just wants the page titles hidden.

    The other method I guess would be to create a new class and add it to the page templates on the h1 title class then do it as:

    h1.entry-title.hide {
         display:none;
    }
  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    My bad - you surely know the theme inside and out and I didn't look closely enough :)! But maybe adding the page class to the above CSS to target only pages?

    body.page h1.entry-title {
            position: absolute !important;
    	clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    	clip: rect(1px, 1px, 1px, 1px);
    }
  7. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    No worries WPyogi....your revised one would work as well. Guess there's several methods...which is always good.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Yes agree, and BTW, I've been admiring your great support and beautiful themes lately :).

  9. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    Thanks WPyogi... I've certainly been busy with things, but it's all part of the fun! More themes are coming! The best part of support is that it helps make themes better as I create more because of the feedback. My goal is to make a theme that needs no support :)

  10. mcacovic
    Member
    Posted 1 year ago #

    What great and quick response! I commented out the code in content-page.php and all is perfect now. Thanks again!

  11. StyledThemes
    Member
    Theme Author

    Posted 1 year ago #

    You're very welcome :)
    However, unless you have additional questions relating to this topic, you might want to change the topic to "Resolved".

  12. mcacovic
    Member
    Posted 1 year ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic