Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1160480
    olbitco
    Participant

    I tried to add a second line under my Logo name but can’t fix it.

    Is it possible to do this and have the second line in a different style ? (see logo.jpg)

    I’m using integrity

    Thx

    #1160506
    Thai
    Moderator

    Hi There,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
    Then 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 . '">';
    
    ?>
    
    <?php echo ( is_front_page() ) ? '<h1 class="visually-hidden">' . $site_name . '</h1>' : ''; ?>
    
    <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="second-line">Your Second Line</div>

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

    .second-line {
        float: left;
        max-width: 200px;
        clear: both;
        display: block;
        font-size: 24px;
        color: #000;
    }

    Hope it helps 🙂

    #1161220
    olbitco
    Participant
    This reply has been marked as private.
    #1161222
    Christopher
    Moderator

    Hi there,

    Please provide us with login and FTP credentials so we can take a closer look.

    Thanks.

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