Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1032713
    calebcammusic1
    Participant

    Hi,

    I would like to add an image above my navbar so that it looks like this: http://www.pinkbowcity.com/

    Is it possible to do this with j-query/css?

    My website is https://calebcameron.com/

    Thank you so much!

    #1033270
    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.

    // 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');
    // =============================================================================

    Note: Please replace http://placehold.it/1200x900 with banner URL.

    Please let us know if this works out for you.

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