Tagged: x
-
AuthorPosts
-
January 10, 2017 at 12:08 am #1323469
AnnParticipantHello 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
January 10, 2017 at 12:11 am #1323474
AnnParticipantThis reply has been marked as private.January 10, 2017 at 2:04 am #1323546
RupokMemberHi 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.pngwith 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!
January 10, 2017 at 10:55 am #1324161
AnnParticipantThat worked perfectly!
It does mess up the header on mobile view though, is it possible to hide on mobile view?
Thanks!
Ann
January 10, 2017 at 12:22 pm #1324283
RupokMemberHey 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!
January 10, 2017 at 2:28 pm #1324470
AnnParticipantPerfect!
All good now! Thanks again guys!
Ann
January 10, 2017 at 2:55 pm #1324509
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1323469 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
