Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1118893
    goalsarecool
    Participant

    How can I add a picture with a button above my topbar?

    Podcast

    #1119224
    Prasant Rai
    Moderator

    Hello 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.

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