• 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

Is there a way to make certain words in the tagline bold?

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 › Is there a way to make certain words in the tagline bold?

This topic is: resolved

Tagged: Tagline Bold

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 3 months ago by nhlennox.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 1, 2016 at 11:41 am #180344
    nhlennox
    Member

    I've noticed some companies (Facebook, Airbnb, etc) have their names in bold in the tagline. Is there a way to make certain words bold in the tagline using CSS or something else?? I tried html but that didn't work.

    March 1, 2016 at 2:13 pm #180365
    Victor Font
    Moderator

    There are a couple of ways to do this, both require overwriting the genesis function. Add either to your theme's functions.php.

    First method is to add the tagline directly in the function. Change the value of $inside to whatever you want your tagline to be.

    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    add_action( 'genesis_site_description', 'my_seo_site_description' );
    function my_seo_site_description() {
    
    	//* Set what goes inside the wrapping tags
    	$inside = '<span color="red">my description</span>';
    
    	//* Determine which wrapping tags to use
    	$wrap = genesis_is_root_page() && 'description' === genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : 'p';
    
    	//* Wrap homepage site description in p tags if static front page
    	$wrap = is_front_page() && ! is_home() ? 'p' : $wrap;
    
    	//* And finally, $wrap in h2 if HTML5 & semantic headings enabled
    	$wrap = genesis_html5() && genesis_get_seo_option( 'semantic_headings' ) ? 'h2' : $wrap;
    
    	/**
    	 * Site description wrapping element
    	 *
    	 * The wrapping element for the site description.
    	 *
    	 * @since 2.2.3
    	 *
    	 * @param string $wrap The wrapping element (h1, h2, p, etc.).
    	 */
    	$wrap = apply_filters( 'genesis_site_description_wrap', $wrap );
    
    	//* Build the description
    	$description  = genesis_html5() ? sprintf( "<{$wrap} %s>", genesis_attr( 'site-description' ) ) : sprintf( '<%s id="description">%s</%s>', $wrap, $inside, $wrap );
    	$description .= genesis_html5() ? "{$inside}</{$wrap}>" : '';
    
    	//* Output (filtered)
    	$output = $inside ? apply_filters( 'genesis_seo_description', $description, $inside, $wrap ) : '';
    
    	echo $output;
    
    }
    

    The second method is to add the HTML markup to the WordPress tagline and use this code:

    remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
    add_action( 'genesis_site_description', 'my_seo_site_description' );
    function my_seo_site_description() {
    
    	//* Set what goes inside the wrapping tags
    	$inside = html_entity_decode(get_bloginfo('description'));
    
    	//* Determine which wrapping tags to use
    	$wrap = genesis_is_root_page() && 'description' === genesis_get_seo_option( 'home_h1_on' ) ? 'h1' : 'p';
    
    	//* Wrap homepage site description in p tags if static front page
    	$wrap = is_front_page() && ! is_home() ? 'p' : $wrap;
    
    	//* And finally, $wrap in h2 if HTML5 & semantic headings enabled
    	$wrap = genesis_html5() && genesis_get_seo_option( 'semantic_headings' ) ? 'h2' : $wrap;
    
    	/**
    	 * Site description wrapping element
    	 *
    	 * The wrapping element for the site description.
    	 *
    	 * @since 2.2.3
    	 *
    	 * @param string $wrap The wrapping element (h1, h2, p, etc.).
    	 */
    	$wrap = apply_filters( 'genesis_site_description_wrap', $wrap );
    
    	//* Build the description
    	$description  = genesis_html5() ? sprintf( "<{$wrap} %s>", genesis_attr( 'site-description' ) ) : sprintf( '<%s id="description">%s</%s>', $wrap, $inside, $wrap );
    	$description .= genesis_html5() ? "{$inside}</{$wrap}>" : '';
    
    	//* Output (filtered)
    	$output = $inside ? apply_filters( 'genesis_seo_description', $description, $inside, $wrap ) : '';
    
    	echo $output;
    
    }
    

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 1, 2016 at 2:33 pm #180367
    nhlennox
    Member

    Thank you.

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