Tagged: x
-
AuthorPosts
-
August 5, 2016 at 9:15 am #1118893
goalsarecoolParticipantHow can I add a picture with a button above my topbar?
August 5, 2016 at 1:49 pm #1119224
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.
Then add following code in child theme function.php file
// Add a custom image and button // ============================================================================= function add_custom_image(){ ?> <div class="custom-image-container"> <!-- our custom header codes here --> <img src="path of image" alt="My banner"> <?php echo do_shortcode('[button type="real" shape="square" size="mini" href="#example" title="Example"]Square Button[/button]'); ?> </div> <?php } add_action('x_before_view_global__navbar', 'add_custom_image'); // =============================================================================Note: Please replace “path of image” with URL of image.
Let us know how it goes.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1118893 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
