Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1414777

    Sandie
    Participant

    Hi,

    https://youpheal.com

    I wonder how I get some text under the sitename to show in the header?

    Is there some CSS code that is blocking it somehow? See what I mean: http://prntscr.com/emm5bm

    Please advise me what to do to add some text under the sitename in the header.

    Thanks!

    Best Regards
    /Sandra

    #1414983

    Thai
    Moderator

    Hi Sandra,

    Please navigate to your child theme’s /framework/views/global directory create a file named _brand.php and paste the code below:

    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_BRAND.PHP
    // -----------------------------------------------------------------------------
    // Outputs the brand.
    // =============================================================================
    
    $site_name        = get_bloginfo( 'name' );
    $site_description = get_bloginfo( 'description' );
    $logo             = x_make_protocol_relative( x_get_option( 'x_logo' ) );
    $site_logo        = '<img src="' . $logo . '" alt="' . $site_description . '">';
    
    ?>
    
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    </a>
    <span class="custom-text">This is the text below sitename!</span>

    After that add the following CSS under Customizer > Custom > Global CSS:

    span.custom-text {
        display: block;
        float: left;
        margin-top: 8px;
        clear: both;
    }
    
    nav.x-nav-wrap.desktop {
        float: right;
        margin-top: -40px;
    }

    Hope it helps 🙂