Tagged: x
-
AuthorPosts
-
October 24, 2016 at 4:32 pm #1228932
mahmoud237ParticipantHow to add a custom image on the navbar to be like the attached photo ?
October 24, 2016 at 4:32 pm #1228937
mahmoud237ParticipantThis reply has been marked as private.October 25, 2016 at 1:09 am #1229378
RupokMemberHi there,
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://placehold.it/200x50">'; $( html ).appendTo('.x-navbar-inner .x-container'); });Change the image path http://placehold.it/200×50 with your uploaded image URL.
Then add this under Custom > CSS in the Customizer.
.my-header-img { display: block; left: calc(50% - 100px); position: absolute; top: 15px; }You might need to change the left value that will depend on the image width, the half of the image width. Adjust according to your need.
Cheers!
October 25, 2016 at 12:20 pm #1230154
mahmoud237ParticipantPerfect it worked 🙂
How can I add href link to this image ?
October 25, 2016 at 12:34 pm #1230173
NicoModeratorHi There,
Change the code above.
jQuery(document).ready(function($) { var html = '<a href="urlhere.com"><img class="my-header-img" src="http://placehold.it/200x50"></a>'; $( html ).appendTo('.x-navbar-inner .x-container'); });Hope it helps.
Let us know how it goes.
Thanks.
October 25, 2016 at 4:47 pm #1230546
mahmoud237Participantit worked perfectly ,
Thank you 🙂
October 25, 2016 at 11:03 pm #1230880
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1228932 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
