Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1387713
    elasticio
    Participant

    Hi,

    As the title suggests, I want to place an image right next to the logo (the logo is situated on the left-hand side of the Navbar if this is relevant). So far, I have found only one topic in the forum that is about exactly what I want: https://community.theme.co/forums/topic/how-to-add-an-image-next-to-logo-in-header/ But since the issue was handled in 2014, I’m wondering if I can use exactly the same code for my purposes or if there have been any changes regarding this? If the latter is true, what code I should use now to get that image where I’d like it to be?

    Thanks a lot for your help in advance!

    #1387878
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Can you please share the URL of your site so we can take a look at your current setup and suggest you the solution accordingly?

    Thanks!

    #1388475
    elasticio
    Participant

    Hi,

    Sure, here it is: https://www.elastic.io/

    Thanks!

    #1388696
    Christopher
    Moderator

    Hi there,

    Please follow the thread and do all the steps, expect that you should add following code in _brand.php 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 '<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>
    
    <a href="URL_TO_WEBSITE" class="logo-aside-image"><img src="IMAGE_URL" alt=""></a>

    Hope it helps.

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