Lego2012
12/13/2016 - 2:58 PM

Hide Site Description

Hide Site Description

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

add_filter( 'genesis_attr_site-description', 'abte_add_site_description_class' );
/**
 * Add class for screen readers to site description.
 *
 * Unhook this if you'd like to show the site description.
 *
 * @since 1.0.0
 *
 * @param array $attributes Existing HTML attributes for site description element.
 * @return string Amended HTML attributes for site description element.
 */
function abte_add_site_description_class( $attributes ) {
    $attributes['class'] .= ' screen-reader-text';

    return $attributes;
}