Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1250559
    bearandoci
    Participant

    Hello!

    First of all, big thank you for your amazing theme!

    I have one question. How can I add two blocks between logo in header? For example – https://monosnap.com/file/wJ8pyWf4wcsvoRnb9kJPyIsLZgUG00

    Best regards

    #1250641
    Joao
    Moderator

    Hi There,

    What exactly you would like to Add?

    You could add on the topbar one content, float it left, than on the right another and use a negative margin.

    Can you provide more details about what you are trying to put there?

    Thanks

    Joao

    #1251247
    bearandoci
    Participant

    I am exactly don’t know what it be, maybe small banners, maybe text.
    Where I can edit html code of header in x-theme?

    #1251254
    Friech
    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.

    Then 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 '<h1 class="visually-hidden">' . $site_name . '</h1>'; ?>
    
    <div class="left-block left">
      Lorem ipsum dolor sit amet.
    </div>
    
    <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="right-block right">
      Lorem ipsum dolor sit amet.
    </div>

    Hope it helps, Cheers!

    #1258084
    bearandoci
    Participant

    It’s working! Perfect. Thank you!

    Best regards

    #1258139
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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