• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove Entry Title from home page/Front Page (Atmosphere)

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove Entry Title from home page/Front Page (Atmosphere)

This topic is: resolved

Tagged: Atmosphere Pro, entry-title, home page, page-title

  • This topic has 1 reply, 1 voice, and was last updated 6 years, 3 months ago by hmistler.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 2, 2016 at 3:16 pm #196940
    hmistler
    Member

    Hello - I moved my page titles from inside the site-inner to after the header, so that they can be full-width. In doing so, it now appears that the most recent blog post title is showing up on the home page, and I'm not sure why.

    Here's the code I used to move the page titles outside the site inner:

    //* Reposition the entry title (requires HTML5 theme support)
    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    add_action( 'genesis_after_header', 'genesis_do_post_title', 2 );

    And here's the code(s) I've tried to remove it now from the home page:

    //REMOVE PAGE TITLE FROM HOME PAGE
    add_action('get_header', 'child_remove_page_titles');
    function child_remove_page_titles() {
    if ( is_front_page () ) {
    	remove_action ('genesis_after_header', 'genesis_do_post_title');
    	}
    }

    And also:

    add_action( 'genesis_before', 'prefix_remove_entry_header' );
    /**
     * Remove Entry Header
     */
    function prefix_remove_entry_header()
    {
    
    	if ( ! is_front_page() ) { return; }
    
    	//* Remove the entry header markup (requires HTML5 theme support)
    	remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
    	remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
    
    	//* Remove the entry title (requires HTML5 theme support)
    	remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    
    	//* Remove the entry meta in the entry header (requires HTML5 theme support)
    	remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    
    	//* Remove the post format image (requires HTML5 theme support)
    	remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 );
    
    }

    Nothing I try seems to remove the blog post title from the home page. I am using Atmosphere pro as a theme, and in setting up the home page I have the home page display set to "most recent posts", not a static page. Thanks in advance for any insight!

    http://sonjahaviland.com
    December 2, 2016 at 5:36 pm #196941
    hmistler
    Member

    UPDATE: I've realized that my code to move the titles to the after_header position deletes the titles from the blog page (see here. So maybe this isn't the best way to get the titles where I want them to be. If anyone has a better way to move the titles with Atmosphere Pro, I'd really appreciate it. I just don't like how I can't make them full width because I wanted to add photos behind the text. Happy to have someone take this on as a separate job.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Remove Entry Title from home page/Front Page (Atmosphere)’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble