Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1030241
    Supajiggi
    Participant

    Hi Guys,

    Been using x now for 18 months and as a complete novice to website building have done really well (in my opinion :o) ). So thank you X team for all your hard work its helped me no end.

    Had a customer wanting to email us today but they did not see the circle + in the top right corner that opens the header widget area with all that info in it.

    Is it possible to create a link to open the widget area from the Topbar Content? If not, what other options do I have to make the normal link more visible?

    I really do not want to add anything to the top nav bar if I can help it.

    website is https://www.ijconline.co.uk

    Many many thanks for your help in advance.

    Ian

    #1030693
    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! You can add a custom menu button and give it class open-widget and then add the following jQuery script in your Customizer via Appearance > Customize > Custom > Edit Global Javascript

    jQuery(document).ready(function($){
    	$('.open-widget').click(function(){
    		if($(".x-widgetbar").hasClass('in')){
    			$('.x-widgetbar').removeClass('in');
    		}
    		else{
    			$('.x-widgetbar').addClass('in');
    			$('.x-widgetbar').css('height', 'auto');
    		}
    	});
    });

    Don’t forget to clear your browser’s cache after adding the code. Let us know how this goes!

    #1043692
    Supajiggi
    Participant

    Great, works a treat.

    Many many thanks for your help.

    #1043953
    Jade
    Moderator

    You’re most welcome.

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