WordPress.org

Support

Support » Themes and Templates » Preference Lite » [Resolved] Remove page titles

[Resolved] Remove page titles

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Theme Author Styled Themes

    @gejay

    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.

    Theme Author Styled Themes

    @gejay

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

    WPyogi

    @wpyogi

    Forum Moderator

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

    Theme Author Styled Themes

    @gejay

    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;
    }
    WPyogi

    @wpyogi

    Forum Moderator

    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);
    }

    Theme Author Styled Themes

    @gejay

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

    WPyogi

    @wpyogi

    Forum Moderator

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

    Theme Author Styled Themes

    @gejay

    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 🙂

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

    Theme Author Styled Themes

    @gejay

    You’re very welcome 🙂
    However, unless you have additional questions relating to this topic, you might want to change the topic to “Resolved”.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] Remove page titles’ is closed to new replies.
Skip to toolbar