Disable Plain Text Slogan only on home page

  • Posted in : Responsy WP
  • iiyates
    Participant

    Great theme. Is there a way to hide the Plain Text Slogan on the home page only?

    I think it may need to be configured in the header.php file

    Mehmet S.
    Keymaster

    Paste to Theme Settings > Style > Custom CSS:

    #logo p { display: none; }
    
    iiyates
    Participant

    That hides it on all pages. I was hoping to just hide it on the home page only. Is that possible?

    iiyates
    Participant

    I inserted in-page CSS code into the php file for the homepage/slider template (what I’m using for my home page). Although it hid the slogan as desired, it had a side effect by cropping the height of the search box. So I’ll have to find another way. I wonder if there is an “is_page” php if statement I could add into the header php file regarding the plain text slogan?

    Mehmet S.
    Keymaster

    Paste to Theme Settings > Style > External JS:

    <script>
    jQuery(document).ready(function($)
    {
    if ( $( 'section' ).hasClass( 'template-name-homepage-with-slider' ) )
    {
    $( '#logo p' ).hide();
    }
    });
    </script>
    
    iiyates
    Participant

    Wonderful – thanks very much!

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Responsy WP’ is closed to new topics and replies.