Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1082762
    Chris A
    Participant

    I’m not using a logo pic in the header. Only text, however I would like a second line of text slightly smaller beneath it/

    How would I go about doing this?

    Thanks!

    #1083078
    Paul R
    Moderator

    Hi Chris,

    Thanks for writing in!

    To achieve that, create file _brand.php in wp-content\themes\x\framework\views\global
    and copy the code below into that file.

    
    <?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 . '">';
    
    ?>
    
    <?php echo ( is_front_page() ) ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?>
    <div style="float:left;">
    <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>    
    </a>
    <div class="x-description" style="clear:both;"><?php echo $site_description; ?></div>
    </div>
    

    Hope that helps.

    #1083921
    Chris A
    Participant

    Thanks. done. what do I do now. where do I put the text to have that second line show up?

    Would have been really helpful if you would have added that in your response.

    #1084442
    Christopher
    Moderator

    Hi there,

    Please add your text under Settings -> General -> Tagline.

    Hope it helps.

    #1084535
    Chris A
    Participant

    That does not work. I have text in there. It is not showing up.

    #1084537
    Chris A
    Participant
    This reply has been marked as private.
    #1084768
    Christopher
    Moderator

    Hi there,

    Please provide us with FTP credentials.

    Thanks.

    #1085404
    Chris A
    Participant

    I figured it out. Just now need to be able to alter the font size, letter spacing a bit, and it is a little too close to the logo above.

    I think I would also like it to be in all capitals, but I don’t want to do that in the tagline itself.

    It appears that it is controlled by the body font in customizer > typography.

    I need this to be smaller than the body font, so it has to be controlled differently somehow.

    #1086132
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! To change the font size and make the text in uppercase, please add the following css code in the customizer, Appearance > Customize > Custom > CSS

    .x-navbar .x-description {
      margin-top: 15px;
      font-size: 12px;
      text-transform: uppercase;
    }

    The top margin controls the distance of the description and your logo. You can also adjust the font size if needed.
    Hope this helps. Kindly let us know.

  • <script> jQuery(function($){ $("#no-reply-1082762 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>