• 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

Site title color

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 › Site title color

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 12 years ago by Stewart.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • June 25, 2013 at 11:44 am #47683
    cwalsh
    Member

    I am hoping someone can help me out with this. I have a site I am in the process of building. The site title is text and currently it is one color, I would like to make one of the words in the title a different color.

    Any thoughts on how I would achieve that? Adding a span tag around with word would be ideal because then I could just add css to change the color but I'm not sure how I would do that.

    Thanks

    Caley


    Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio

    http://69.61.57.110/~canapriv/
    June 26, 2013 at 2:37 am #47753
    Stewart
    Member

    Hi Caley,

    You could try adding a filter to the word/words you want to add a span, try adding this to your child theme's function.php:

    function sc_customize_site_title($title, $inside, $wrap) {
    	$custom_title = str_replace("WORD_WANT_TO_CHANGE", "<span>WORD_WANT_TO_CHANGE</span>", $title);
    	return $custom_title;
    }
    add_filter('genesis_seo_title','sc_customize_site_title', 10, 3);
    

    Then you change WORD_WANT_TO_CHANGE to the word your are trying to add the span to, and just style it in your style.css.

    Hope this helps
    Stewart


    WordPress Developer – Need help upgrading to Genesis 2.0? – My Blog
    Follow me 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