• Resolved 54dm

    (@54dm)


    Good afternoon.
    Sorry for my English.
    I have a problem with the modal windows (popup macker).
    Buttons and links do not work.
    When you click on the link, the screen goes to the top of the page.
    When you press the button, nothing happens.
    The window class is created correctly, showing on the entire site (that is, is not limited).
    How to make the work correct?
    Theme Zerif Casting
    Pop-up plugin – Pupup Macker.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Can you please post a link to your site where I can see this issue so I can try to help you better?

    Thread Starter 54dm

    (@54dm)

    Thank you for responding.
    Here is the link to which I created a hyperlink to the modal window and the button.
    http://www.химчист54.рф/статьи/
    (www.xn--54-vlcat5ahtu.xn--p1ai in punycode)
    Site in the .рф domain in Cyrillic
    There is very little information on Russian websites with this error.
    Help me, please)

    Thread Starter 54dm

    (@54dm)

    It does not work because of Zerif Lite, because changing the theme, everything starts working.
    In other templates, there are no errors in the console.
    Here’s what the Zerif Lite template shows:
    Uncaught Error: Syntax error, unrecognized expression: # menu-% d0% b3% d0% bb% d0% b0% d0% b2% d0% bd% d0% b% d0% b5-% d0% bc% d0% b5% D0% bd% d1% 8e

    Hi,
    It seems the problems with your links/url. Install this plugin http://wordpress.org/extend/plugins/strings-sanitizer/ to create the clean and SEO friendly url. Hope it will resolve the issue.

    Thanks
    Mohammad

    Thread Starter 54dm

    (@54dm)

    mdshak, Thank you for your attention, but your method did not help(

    Hi,
    Please paste this code functions.php of theme .

    function modify_nav_menu_args( $args )
    {
    	
    		$args['menu_id'] = 'mohammad_id';
    		
    	
    
    	return $args;
    }
    
    add_filter( 'wp_nav_menu_args', 'modify_nav_menu_args' );

    Thanks
    Mohammad

    Hi,
    I am waiting for your reply.
    Thanks
    Mohammad

    Thread Starter 54dm

    (@54dm)

    Good afternoon. I apologize for the late reply.
    Just checked.
    Thank you very much, Mohammad, the way works.
    I added your code to the end of the file functions.php
    No one could solve the problem for two weeks, but you could!
    Once again, forgive my English))
    If it’s not difficult for you, can you briefly tell us what was the problem in “simple language”)?

    Hi,
    You give the name of Menu in Russian at Admin > Appearance > Menus > Menu Name > You inserted the Russian Name that have special characters. These special characters created the syntax error with Jquery so all javascript code failed due to this. Failing the javascript became the reason to failure modal popup code.

    There is another fix to this issue if use English Name in Admin > Appearance > Menus > Menu Name . Try this and remove my code as i suggested in previous reply.
    I want to fix in technical way so i gave you code.

    Hope i explained well and let me know the feedback.

    Thanks
    Mohammad

    Thread Starter 54dm

    (@54dm)

    Mohammad, thank you for your help.
    I deleted your code and replaced the “Main Menu” with “MainMenu”.
    Everything works, it’s strange that no one offered me such a solution.
    I even hired a paid specialist with eight years of experience, which also did not help me)

    Thread Starter 54dm

    (@54dm)

    *I deleted your code and replaced the “Главное Меню” with “MainMenu”.

    Hi,
    I am very glad 🙂 to know that another solution worked.
    Thanks
    Mohammad

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Problem with modal window’ is closed to new replies.