Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WPBean

    (@wpbean)

    @ckov1

    I just went to your site. Did you figure it out already?

    Or do you need help still?

    Thanks

    Thread Starter ckov1

    (@ckov1)

    Hi mate,

    happy to hear you now

    yes still stuck in problem

    Thread Starter ckov1

    (@ckov1)

    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 CF7

    and can not find where i made mistake ??

    p.s. must be in menu button id ( but can not face with that )

    Plugin Author WPBean

    (@wpbean)

    @ckov1

    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.

    https://snipboard.io/nBsXKi.jpg

    Thread Starter ckov1

    (@ckov1)

    Many thanks

    i expect whole day your answer ?? ??

    Many thanks !

    Thread Starter ckov1

    (@ckov1)

    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

    Plugin Author WPBean

    (@wpbean)

    @ckov1 has joined our website’s live chat. The issue has been resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Popup on menu button’ is closed to new replies.