Popup on menu button
-
https://ww.wp.xz.cn/support/topic/display-popup-on-menu-item-click/
i refer on this link
i put in id contact form id but probably i missing something,
code is pasted in function.php
but button ‘ВДОМИ МИЛЕНИК’ last one in menu header is not work ( must make mistake on link)
will share few screenshots:
https://www.dropbox.com/s/s6e4srqdphdafa4/Screenshot%202022-12-07%20at%2023-31-03%20functions.php%20-%20cPanel%20File%20Manager%20v3.png?dl=0we communicate somewhere before 8 months and can not find where exactly
also left review for you plugin and i am satisfied
thanks in advance
The page I need help with: [log in to see the link]
-
Hi mate,
happy to hear you now
yes still stuck in problem
How i understand code from post between you and
code in my case should be like this:
add_filter( 'wp_nav_menu_items', function( $items, $args ){ if ($args->nav-menu-item-5127 == 'primary') { $items .= '<li><a href="#" class="wpb-pcf-form-fire" data-id="5" data-post_id="'. esc_attr( get_the_ID() ) .'" data-form_style="1" data-width="500px">Form Popup</a></li>'; } return $items; }, 10, 2 );where : nav-menu-item-5127 is button from menu
data-id = “5” is id fro CF7and can not find where i made mistake 🙁
p.s. must be in menu button id ( but can not face with that )
I just added a new feature for this. No need to add any code for this.
Just update the plugin and go to the menu. You will see a new checkbox for this.
Many thanks
i expect whole day your answer 🙂 🙂
Many thanks !
Strange but buttons is missing,
i see the tick option from upper menu in MENUS section i chose but is not showing ,
probably CSS conflicts
@ckov1 has joined our website’s live chat. The issue has been resolved.
The topic ‘Popup on menu button’ is closed to new replies.