WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mcmoran
    Member
    Posted 1 year 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":

    http://www.ottawavalleyirish.com/

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

  2. c.bavota
    Member
    Theme Author

    Posted 1 year 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 1 year ago #

    Review body_class()
    http://codex.wordpress.org/Function_Reference/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
    Member
    Posted 1 year ago #

    Thank you!

    I replaced

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

    with

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

    and it worked.

  5. paulwpxp
    Font hero
    Posted 1 year 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
    Member
    Posted 8 months 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

Tags

No tags yet.