Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1323601
    TomasJarvling
    Participant

    Hi. I am working on: http://www.antoniofiorelli.se
    I have changed the header logo text to the font Playfair Display SC
    Just underneath the header logo text i would like to add a smaller text: Qualitiy Italian tailored suits, shirts and accessories with the font Tangerine

    Is that possible? Or do I have to create a logo picture to place there?

    Tomas

    #1323752
    Christopher
    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.

    Copy _brand.php from framework/views/global and put it in the same path inside child theme, replace existing code with following :

    <?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 '<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>
    <span style="font-family:Tangerine;"><?php bloginfo('description');?></span>

    Provided code outputs site’s description.
    Please add it under Settings -> General -> Site tagline.

    Hope it helps.

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