• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WriteNowDesign - Wordpress and Ecommerce Website Design

WordPress, Joomla, Ecommerce Website Design

  • Home
  • Prices/Packages
  • WordPress
  • Services
  • Portfolio
  • Blog
  • About
    • Testimonials
    • Locations
    • Online Payment
  • Contact
  • Show Search
Hide Search

Call 303-907-6133 Email

Genesis: How to Modify the Site Description

January 5, 2014 by Pat Fortino

I recently had a Genesis WordPress project where I needed to add a span tag to the site description (tagline). The Studeopress website explains how to modify the Site Title with a filter but does not explain how to modify the Site Description (Tagline).The Tagline is the text you enter in the Tagline field in the WordPress General Settings. In my case, I needed to have two colors in the tagline. To do this, I used the genesis_seo_description filter to add span tags and additional text to the tagline.

// Modify site description
add_filter('genesis_seo_description', 'sp_seo_description', 10, 3);
function sp_seo_description($description, $inside, $wrap)	{
	$inside = sprintf( '%s...<span>With Menus To Fit Your Wishes and Budget</span>', esc_attr( get_bloginfo('description') ), get_bloginfo('description') );
	$description = sprintf( '<%s class="site-description">%s</%s>', $wrap, $inside, $wrap);
	return $description;
}

genesis-site-description

The image above illustrates my modification: I added <span>With Menus To Fit Your Wishes and Budget<span> so I could use two colors in the tagline.

Same with the site title. Below is the code to modify the site title:

// Modify site title
add_filter('genesis_seo_title', 'sp_seo_title', 10, 3);
function sp_seo_title($title, $inside, $wrap) {
	$inside = sprintf( '<a href="/" title="%s">%s</a><span>Custom Catering</span>', esc_attr( get_bloginfo('name') ), get_bloginfo('name') );
	$title = sprintf('<%s class="site-title">%s</%s>', $wrap, $inside, $wrap);
	return $title;
}

 

Filed Under: Genesis Leave a Comment

Previous Post: « bbPress v Simple:Press
Next Post: Create a Category Template in WordPress Genesis »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related

Primary Sidebar

Blog Categories

Call Today

Get a Free Quote

303-907-6133

Subscribe to News

News about WordPress, WooCommerce, & Technology

What’s New

  • WPForms Not Sending Notifications
  • Add Terms and Conditions WooCommerce
  • Fix WordPress AMP Validation Errors
  • Use the Classic Editor with Gutenberg Block Editor
  • Add a Message at Top or Bottom of WooCommerce Checkout Page
  • How to Link to a PDF in WordPress

Find Us On…

  • Facebook
  • LinkedIn
  • RSS

Call 303-907-6133 Email

© 2004–2023 · WriteNowDesign · Sitemap · Log in · Return to Top

 

Loading Comments...