Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1177848
    weedywhizz
    Participant

    Hi,

    I’d like to add some text under or next to my brand text.
    Checked some threads here but most of the solutions add a line over the top of my navbar.

    Website is http://www.weedywhizz.com

    The text should also have the google megrim font but font size should be smaller.

    Thank you very much.

    Cheers

    #1177866
    Friech
    Moderator

    Hi There,

    Thanks for writing in! On your child theme navigate to this directory \x-child\framework\views\global create a file named _brand.php in there and paste the code below on it.

    <?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="site-tagline">YOUR CONTENT HERE</div>

    Replace the YOUR CONTENT HERE with your own actual content.

    Let us know how it goes.

    Cheers!

    #1177989
    weedywhizz
    Participant

    Hi,

    just added the code but it happens again – the text appears on top of the navbar.
    Take a look at my attachment to see what I mean. The main brand also moves up and is not in line with the menu any more.

    Thanks
    Cheers

    #1178257
    Joao
    Moderator

    Hi There,

    Please keep the code there so we can provide you the CSS to align it correctly.

    Let us know when it is ready so we can help 🙂

    **Love modulars!

    Joao

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