• 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

Minimum Pro site tagline – make it an h2 tag

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 › Minimum Pro site tagline – make it an h2 tag

This topic is: not resolved

Tagged: minimum pro site tagline h2 tag

  • This topic has 9 replies, 5 voices, and was last updated 8 years, 4 months ago by asbilly92.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • October 23, 2014 at 4:24 pm #128896
    asbilly92
    Participant

    What would be the easiest way to make the site tagline be an H2 tag, instead of a paragraph tag?

    http://www.spacemanagement.com/spacewp/
    October 23, 2014 at 7:12 pm #128904
    loudivers
    Member

    I think you will need to make the edit in the functions.php
    look for this line
    printf( '<p %s>%s</p>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) );

    and change it to this
    printf( '<h2 %s>%s</h2>', genesis_attr( 'site-description' ), esc_html( get_bloginfo( 'description' ) ) );

    hope this works.

    October 23, 2014 at 7:39 pm #128906
    asbilly92
    Participant

    OH wow thank you! I will give it a shot tomorrow!

    October 24, 2014 at 11:19 am #128986
    asbilly92
    Participant

    That worked perfectly, thank you!

    I wonder if there is a way to have the site-description only show on the home page?

    October 24, 2014 at 12:55 pm #128995
    badlydrawnben
    Member

    I haven't tested it, but you could add something like this into your functions.php file:

    add_action( 'genesis_before', 'site_desc_home_only' );
    function site_desc_home_only() {
    if( is_home() )
    return;
    
    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    }

    It's basically saying that if it's the home page then it will do nothing, otherwise it will remove the site description from the page.

    Ben

    October 30, 2014 at 8:40 am #129877
    asbilly92
    Participant

    Ok I tried this and it didn't work 🙁 but you did say that you hadn't tried it so...do you think it's just a tweak in your code maybe?

    October 30, 2014 at 8:50 am #129879
    Brad Dalton
    Participant

    Try adding this in your functions file

    https://gist.github.com/braddalton/c202c6e299e0806e1fe0


    Tutorials for StudioPress Themes.

    October 30, 2014 at 9:39 am #129889
    loudivers
    Member

    For Minimum Pro I think you'll just need to add this little bit of code to the functions php a couple lines above your last edit

    if ( is_page() && !is_front_page() ) {
    return;
    }

    right below this line

    //* Add the site tagline section
    add_action( 'genesis_after_header', 'minimum_site_tagline' );
    function minimum_site_tagline() {

    so that it will look like this

    //* Add the site tagline section
    add_action( 'genesis_after_header', 'minimum_site_tagline' );
    function minimum_site_tagline() {
    
    if ( is_page() && !is_front_page() ) {
    return;
    }
    October 31, 2014 at 4:40 am #129978
    Victor Jack
    Member

    Thanks friends...


    Fiverr Clone Script

    October 31, 2014 at 8:20 am #130011
    asbilly92
    Participant

    Thank you, I ended up solving it by using the unique body class and then site tagline - display none. It's a small site so this is so easy for me to do and then I can still easily have the site tagline on any page that I want 😉

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

© 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