Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Please do use this filter and check once – ampforwp_amp_menu_content and let us know back.

    Thread Starter PCWP

    (@toprasobh)

    I just want to remove the already set amp menu using code and replacing it with static menu items using hooks. The filter is not working. I tried the below hooks and it’s working fine. But both menus are displaying. I don’t want to uncheck the amp menu through the appearance -> menu. Want to remove the menu already set through appearance -> menu using code and display the static menu added using action hooks.

    add_action(‘ampforwp_after_amp_menu’, ‘amp_alternate_menu’);

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Can you please let me know what value did you return using the filter?

    Thread Starter PCWP

    (@toprasobh)

    $menu_html_content =””;

    Thread Starter PCWP

    (@toprasobh)

    Can you share the full filter code to remove AMP menu.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove AMP menu using code’ is closed to new replies.