Magazine Basic
[resolved] Remove entry title from static front page ONLY? (6 posts)

  1. mcmoran
    Posted 3 years ago #

    I am using the latest version (3.0.2) of the Magazine Basic theme. My home page is a static front page called "Home":


    How do I remove the entry title ("Home") from this page only?

  2. c.bavota
    Theme Author

    Posted 3 years ago #

    If you want to remove titles from all pages just delete the title in content-page.php. If you only want to remove for the front page you need to look at using the is_front_page() conditional.

  3. paulwpxp
    Font hero
    Posted 3 years ago #

    Review body_class()

    and in the Custom CSS option (if provided by the theme or use a plugin one) or in the style.css of your child theme put something like this:

    .page-id-152 .entry-title {
    	position: absolute !important;
    	clip: rect(1px 1px 1px 1px); /* IE7 */
    	clip: rect(1px, 1px, 1px, 1px);

    page-id-xx is the id of the page, see more classes in body_class()'s doc above.

  4. mcmoran
    Posted 3 years ago #

    Thank you!

    I replaced

    <h1 class="entry-title"><?php the_title(); ?></h1>


    <?php if ( !is_front_page() ) :?><h1 class="entry-title"><?php the_title(); ?></h1><?php endif;?>

    and it worked.

  5. paulwpxp
    Font hero
    Posted 3 years ago #

    and now you lose H1 for front landing page for no reason, better hide it visually and use something meaningful to the site for that page name.

  6. lacanadian
    Posted 2 years ago #

    Sorry, but I'm new to this. Could someone please tell me where I find this code that we'd need to modify? For example, where do I find "content-page.php" ? Thanks.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.