• Resolved drakas

    (@drakas)


    hello,

    After plugin update my language switcher is broken & I got this error in console:

    (index):197 Uncaught TypeError: Cannot read property 'top' of null
        at HTMLAnchorElement.<anonymous> ((index):197)
        at HTMLAnchorElement.handle (jquery-1.4.1.min.js:54)
        at HTMLAnchorElement.j (jquery-1.4.1.min.js:49)

    when i try to click on language switcher I think this is something wrong with menu.

    Site url: ekostoma.com

    Can you help me to solve this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Alex Gor

    (@alexgff)

    I have checked browser console of your site
    I see that first of all problem occurs with jquery.mobile-1.3.0-beta.1.js

    Thread Starter drakas

    (@drakas)

    Yep. I’m fixed this now, but the problem still exists.

    Plugin Support Alex Gor

    (@alexgff)

    Now you have error in script

    
    	$('.menu-item a').click(function(e){
    	e.preventDefault();
    		$('.menu-item').removeClass('current-menu-item');
    		$(this).parent().addClass('current-menu-item');
    		var id = $(this).attr('href').split('#');
    		$('html,body').animate({
    			scrollTop: $("#"+id[1]).offset().top},
    			'slow');	
    		}); 
    		
    		});
    

    This is not WPGlobus code.

    Thread Starter drakas

    (@drakas)

    Ok, but I dont get it what is wrong with language switcher css?

    Plugin Support Alex Gor

    (@alexgff)

    You need to add custom CSS to fix language switcher
    or
    to insert language switcher in specific place in the header
    https://wpglobus.com/faq/is-there-php-code-to-insert-language-switcher-in-specific-place/

    Thread Starter drakas

    (@drakas)

    Can you write me custom css code?

    Plugin Author TIV.NET INC.

    (@tivnetinc)

    @drakas

    Yes, you can hire our development team to write a custom CSS, JS or PHP code. Please contact us at https://wpglobus.com/

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘language switcher is broken after plugin update’ is closed to new replies.