Tagged: x
-
AuthorPosts
-
December 17, 2016 at 10:00 am #1296613
ermitagParticipantHi.
1)How can i get close button on widgetbar
like on screenshot?
http://prntscr.com/dkku762)It is possible to get widgetbar closed, when clicking outside widgetbar area?
Thank you
December 17, 2016 at 4:37 pm #1296789
RadModeratorHi there,
Thanks for posting in.
Please add this code to Admin > Appearance > Customizer > Custom > Javsacript
jQuery( function($) { $('.x-widgetbar-inner').append('<a href="#" class="top-widget-close"></a>'); $('.top-widget-close').on('click', function(e){ e.preventDefault(); $('.x-btn-widgetbar').trigger('click') } ); } );Then this CSS to Admin > Appearance > Customizer > Custom > CSS
.top-widget-close { position: relative; } .top-widget-close { position: absolute; font-family: FontAwesome; right:10px; bottom:10px; }Hope this helps.
December 19, 2016 at 3:39 am #1297879
ermitagParticipantThank you.
for second question
2)It is possible to get widgetbar closed, when clicking outside widgetbar area?I find this solution:
jQuery(function($){
$(“.x-slider-container, .masthead, .x-main”).on( “click”, function(){
$(“.x-widgetbar.in”).removeClass(“in”);
});
});Right?
December 19, 2016 at 3:49 am #1297882
ChristopherModeratorHi there,
Please update it to :
jQuery(function($){ $(".x-slider-container, .masthead, .x-main").on( "click", function(){ $(".x-widgetbar.in").removeClass("in"); $(".x-widgetbar").css("height";"0"); }); });Hope it helps.
December 19, 2016 at 3:56 am #1297890
ermitagParticipantwhen both scripts:
jQuery( function($) {
$(‘.x-widgetbar-inner’).append(‘‘);
$(‘.top-widget-close’).on(‘click’, function(e){ e.preventDefault(); $(‘.x-btn-widgetbar’).trigger(‘click’) } );
} );jQuery(function($){
$(“.x-slider-container, .masthead, .x-main”).on( “click”, function(){
$(“.x-widgetbar.in”).removeClass(“in”);
$(“.x-widgetbar”).css(“height”;”0″);
});
});disapear “close” button
December 19, 2016 at 4:23 am #1297938
LelyModeratorHi There,
Would you mind adding both scripts so we can see the error? Thank you.
December 19, 2016 at 4:46 am #1297967
ermitagParticipantThis reply has been marked as private.December 19, 2016 at 5:07 am #1297998
LelyModeratorHi There,
I can’t seem to duplicate the issue. See attached screenshot. Can you try to cleat cache? The code is not there when I tried to view the source code of the page.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1296613 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
