Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1253087
    themebob
    Participant

    I have a ‘Renew’ setup nicely with a stacked logo and menu beneath.

    I’d like to heavily promote a specific product by showing a small linked ‘banner’ carefully positioned to the right hand side of the logo image.

    Is there an elegant, simple way to do this with minimal hacking?

    TY

    #1253096
    themebob
    Participant
    This reply has been marked as private.
    #1253245
    Paul R
    Moderator

    Hi,

    To achieve that, please set up a child theme.

    https://community.theme.co/kb/how-to-setup-child-themes/

    Then create file _brand.php in wp-content/themes/x-child/framework/views/global
    and copy the code below into that 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>
    
    <div id="kippersbypost">
        <a href="/kippers-by-post.html"><img src="images/site/kippersbypost.gif" border="0" alt="Kippers by Post" title="Kippers by Post"></a>    
    </div>
    

    Hope that helps.

    #1253425
    themebob
    Participant

    Awesome! Thank you!

    #1253459
    Rahul
    Moderator

    You’re most welcome!

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