Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1078446

    Hi team,

    I would like to place a logo above the menu title. (Navbar fixed left)
    To place the title as first item in my menu isn’t what I’m looking for. Mobile this would not work, because the title is covered them.

    Maybe you have a solution.
    Thanks

    #1078864
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    Thanks.

    #1078994

    Right, it’s this URL:

    Zahnarztpraxis Mhdawi Nürtingen

    #1079067
    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.

    Please 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 ( 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; ?>">
    <img src="add image url here" style="display: block;width: 100%;">
      <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?>
    
    </a>

    Hope it helps.

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