Tagged: x
-
AuthorPosts
-
November 11, 2016 at 4:13 am #1253087
themebobParticipantI 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
November 11, 2016 at 4:16 am #1253096
themebobParticipantThis reply has been marked as private.November 11, 2016 at 6:24 am #1253245
Paul RModeratorHi,
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.
November 11, 2016 at 9:53 am #1253425
themebobParticipantAwesome! Thank you!
November 11, 2016 at 10:16 am #1253459
RahulModeratorYou’re most welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1253087 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
