Tagged: x
-
AuthorPosts
-
September 7, 2016 at 7:25 pm #1165371
databellParticipantI’d like to be able to have a full width image above the navbar, just like you have on the X theme’s homepage. Looks like it’s just a div with a background image and then a image centered inside of it. How did you create that?
September 7, 2016 at 11:54 pm #1165816
Prasant RaiModeratorHello There,
Thanks for writing in!
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.
Once your child theme is ready, please insert this code in your child theme’s functions.php
// Add a custom image above the navbar // ============================================================================= function add_custom_image(){ ?> <div class="custom-image-container"> <!-- our custom header codes here --> <img src="http://placehold.it/1200x900" alt="My banner"> </div> <?php } add_action('x_before_view_global__navbar', 'add_custom_image'); // =============================================================================Please let us know if this works out for you.
September 8, 2016 at 3:23 am #1166038
databellParticipantActually I found another way to do it by copying over the wp-header.php into the icon folder for the framework. Sorry about that. This is a very different system than I’m typically used with WP themes.
September 8, 2016 at 5:14 am #1166189
ChristianModeratorGlad you’ve figured a solution.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1165371 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
