• 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

Genesis Featured Posts title tag change (h2 -> h4)

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 › Genesis Featured Posts title tag change (h2 -> h4)

This topic is: not resolved
  • This topic has 5 replies, 3 voices, and was last updated 11 years, 9 months ago by Mallina.Studio.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • August 31, 2014 at 11:44 am #122075
    Mallina.Studio
    Member

    Can't find the solution for my blog.
    Willing to change the Posts title tag on front-page for Genesis Featured Posts widget.
    By default it's H2, and I want to switch them to H4 for lower priority comparing to other important content...
    Does anybody met the solution on the web or knows how to change it with function.php?
    Hope for your help!
    Thank's


    Частный дизайнер интерьера

    https://mallina-studio.com
    August 31, 2014 at 12:13 pm #122080
    Brad Dalton
    Participant

    You can make your own custom featured posts widget or filter the widget title

    Or just use CSS


    Tutorials for StudioPress Themes.

    August 31, 2014 at 12:14 pm #122081
    Mallina.Studio
    Member

    Can you please provide example "how-to" ? - "filter the widget title"


    Частный дизайнер интерьера

    August 31, 2014 at 12:34 pm #122084
    Brad Dalton
    Participant

    If you don't know how to filter the widget title, please use CSS to change the widget title size.


    Tutorials for StudioPress Themes.

    August 31, 2014 at 12:35 pm #122085
    Genesis Developer
    Member

    You can't use filter option. HTML markup is hard coded in the file. Here is the original code (featured-post-widget.php)

    if ( ! empty( $instance['show_title'] ) ) {
    	if ( genesis_html5() )
    		printf( '<h2 class="entry-title"><a href="%s" title="%s">%s</a></h2>', get_permalink(), the_title_attribute( 'echo=0' ), get_the_title() );
    	else
    		printf( '<h2><a href="%s" title="%s">%s</a></h2>', get_permalink(), the_title_attribute( 'echo=0' ), get_the_title() );
    }

    I think that you'll try Genesis Featured Post Widget Amplified plugin or make a custom widget. If you use GFPWA plugin then you can use the filter or customize the code by hook


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 31, 2014 at 12:40 pm #122089
    Mallina.Studio
    Member

    CSS doesn't metter for the indexing bot

    To: genwrock
    Bad.... Hoped add_filter can help me. I'll try your solution with widget plugin maybe


    Частный дизайнер интерьера

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

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