Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1323469
    Ann
    Participant

    Hello Hello,

    Is there a way to add an image to the top nav bar? I’d like an image to be all the way to the right, next to “contact” – see attached image. I have also attached the image I’d like to add.

    Thanks so much!

    Ann

    #1323474
    Ann
    Participant
    This reply has been marked as private.
    #1323546
    Rupok
    Member

    Hi Ann,

    Thanks for writing in!
    You can add this under Custom > JavaScript in the Customizer.

    jQuery(document).ready(function($) {
      var html = '<img class="my-header-img" src="http://parronhall.marketingofdesign.com/uploads/yourimage.png"/>';
      $( html ).appendTo('.x-navbar-inner');
    });

    Let’s update http://parronhall.marketingofdesign.com/uploads/yourimage.png with your uploaded image URL.

    Then add this under Custom > CSS in the Customizer.

    .my-header-img {
      position: absolute;
      right: 10px;
      top: 20px;
      width: 100px;
    }
    .x-navbar-inner {
      padding-right: 100px;
    }

    Let’s adjust the CSS if needed.

    Cheers!

    #1324161
    Ann
    Participant

    That worked perfectly!

    It does mess up the header on mobile view though, is it possible to hide on mobile view?

    Thanks!

    Ann

    #1324283
    Rupok
    Member

    Hey Ann,

    Thanks for writing back and glad that it worked for you. You can add this as well to hide this on mobile :

    @media only screen and (max-width: 979px) {
    .my-header-img {
      display: none;
    }
    }

    Cheers!

    #1324470
    Ann
    Participant

    Perfect!

    All good now! Thanks again guys!

    Ann

    #1324509
    Prasant Rai
    Moderator

    You are most welcome. 🙂

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