• Resolved philahoopes

    (@philahoopes)


    Hi all,
    I’ve added these lines –

    body.home .entry-title {
    display: none;

    to the Style.css file as advised in a thread for the Twenty Ten theme, to no effect – so need to ask for help for a non-techie. If the code is correct (dubious with theme difference), where should I put it? If not, what is the correct code, and where should I put that in the Style.css file?

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Tareq

    (@worthingtech)

    You almost got it!

    1. This will set all pages/posts to display: none;

    .entry-title {
        display: none;
    }

    2. For a specific page you could do this:

    .page-id-x .entry-title {
        display: none;
    }

    Where x is your page ID. You can find this in your page edit screen.

    3. You can also do this for posts:

    #post-x .entry-title {
        display: none;
    }

    Where x is your post ID. You can find this in your post edit screen.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Install this Custom CSS Manager plugin https://www.ads-software.com/plugins/custom-css-manager-plugin

    Then use its “CSS Code” section of the dashboard to hold your CSS modifications.

    Tareq

    (@worthingtech)

    Ah yes, what the mod said. I would say a Child Theme but if you’re only doing style modifications you’ll only need the Customer CSS Manager!

    If you just want it removed off that front page, all you need is

    .home .entry-title {
        display: none;
    }
    Thread Starter philahoopes

    (@philahoopes)

    Thank you! The code plus the plugin did it perfectly. Much appreciated!

    Hi All,

    I am trying to basically do the same thing in the 2014 theme on my static front page, but instead of ‘Home’ I have ‘#9(NO TITLE)’ appearing at the top of my page. I have tried everything to not have this appear, including doing the obvious – deleting any title/text in my Edit Page section as well as downloading the Custom CSS Manager plugin and adding the above code in but to no avail.

    Is there anything I am missing or can do to not have this (or any text at all for that matter) appear on the top of my page?

    Any help would be greatly appreciated!!

    Best
    Tommy

    I’m having the same problem tommyj108. have you figured it out yet?

    @tareq

    How can we remove those page titles from several pages? I tried:

    .page-id-x1 .entry-title { display: none;
    .page-id-x2 .entry-title { display: none;
    .page-id-x3 .entry-title { display: none;
    }

    (with x1, x2 and x3, etc. representing different IDs)

    …but it doesn’t work.
    This probably sounds terribly stupid to people who actually know CSS.

    Sorry ??

    when I add the code:
    .page-id-x1 .entry-title { display: none; }
    disappears also the title of the slides. Any suggestions?
    Thank You

    Gianluca

    I’ve added the suggested code to the code manager, as well as physically changed the CSS in the Theme Editor style.css file. To top it off, I also physically deleted the following code from content-page.php:

    <?php
    		// Page thumbnail and title.
    		twentyfourteen_post_thumbnail();
    		the_title( '<header class="entry-header"><h1 class="entry-title">', '</h1></header><!-- .entry-header -->' );
    ?>

    After all three of these steps, the Home text still shows in the body of my page. I’m at a loss.

    Any suggestions to fix this problem would be of great appreciation.

    Thank you,

    Michael.

    I’d suggest starting your own thread – this one is marked resolved. You can do so here on the forum for Twenty Fourteen Theme:

    https://www.ads-software.com/support/theme/twentyfourteen#postform

    And note that you should not be modifying any theme files directly – as all of those changes will be lost when WP is updated.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Remove "Home" Title from front static page Twenty-Fourteen Theme’ is closed to new replies.