• 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

Titles show for posts using post formats when adding HTML5 to Mindstream

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 › Titles show for posts using post formats when adding HTML5 to Mindstream

This topic is: not resolved

Tagged: html5, Mindstream, Post Formats

  • This topic has 1 reply, 2 voices, and was last updated 11 years ago by Robin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 22, 2014 at 11:03 pm #111120
    arush
    Member

    Hi all,

    I am customizing the Mindstream theme, and after I've updated the CSS and added support for HTML5, titles start showing for posts using post formats. For instance, before the upgrade, the alt tag for the image displayed for posts that were status, video, link, chat, and anything else that isn't standard. Now, the title of the post shows on all posts. Is there a way to get the theme to use the proper HTML5 markup, while still keeping the functionality that causes the images and their alt tags to show up on non-standard posts? I've tried adding a priority to the function calls that enable the support for post formats, post format images, and to the statement removing the title from non-standard posts, and I've set the priority as low as 3, but no luck. Any help would be appreciated. I'd just switch themes, but I use post formats a lot, and I don't think there's another Genesis theme that utilizes them while having the HTML5 support, so this would be a problem no matter what theme I use. Thanks.

    Amanda

    http://personal.customerservant.com
    June 23, 2014 at 1:21 pm #111209
    Robin
    Member

    HTML5 uses different hooks than XHTML, so you need to find this section in your functions.php:

    function mindstream_remove_elements() {
    	
    	// Remove if post has format
    	if ( get_post_format() ) {
    		remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    		remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    		remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    	}
    	// Add back, as post has no format
    	else {
    		add_action( 'genesis_post_title', 'genesis_do_post_title' );
    		add_action( 'genesis_before_post_content', 'genesis_post_info' );
    		add_action( 'genesis_after_post_content', 'genesis_post_meta' );
    	}
    	
    }
    

    Here's the code for the new hooks in the entry header, and here's for the entry footer. HTH


    I do the best I can with what I’ve got. (say hey on twitter)

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 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