Tagged: x
-
AuthorPosts
-
December 7, 2016 at 7:12 am #1284524
MastresParticipantHi i’m trying to change the logo in the mobile version as i see in another post forum, but don’t work for me
jQuery(document).ready(function($){
var width = $(window).width();
var logo_src = $(“.x-brand img”).attr(“src”);if(width < 980) {
$(“.x-brand img”).attr(“src”, “http://www.raquel-davalos.com/wp-content/uploads/2016/12/Logo-Raquel-Davalos-horizontal.png”);
}
else {
$(“.x-brand img”).attr(“src”, logo_src);
}
});Regards
December 7, 2016 at 8:29 am #1284616
DarshanaModeratorHi there,
Thanks for writing in! You have enabled under construction mode. Could you please try this code instead.
(function($) { if ($(window).width() < 980) { $(".x-brand img").attr("src", "http://path.to/your/image.png") } })(jQuery);Hope that helps.
December 7, 2016 at 9:37 am #1284704
MastresParticipantDon’t work, i try with the code and then with this other
jQuery(document).ready(function($) {
if ($(window).width() < 980) {
$(“.x-brand img”).attr(“src”, “http://path.to/your/image.png”)
}
})(jQuery);December 7, 2016 at 10:33 am #1284763
JoaoModeratorHi There,
Please use this instead:
@media (max-width: 979px){ .x-brand.img { background: url(http://placehold.it/200x50) no-repeat center center; background-size: 100% 100%; } .x-brand.img img { opacity: 0; } }Hope it helps
Joao
December 7, 2016 at 1:20 pm #1284979
MastresParticipantOk, thanks 🙂
December 7, 2016 at 2:58 pm #1285092
JoaoModeratorHi There,
Let us know if you need help with another adjustments.
Thanks
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1284524 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
