Jump to content


This topic is now archived and is closed to further replies.


Poppy as Menu item?

Recommended Posts


Love the free section "Poppy" with contact shortcodes :)


Can anybody tell how I can put it in a regular menu?

For example I have a "Contact" menu item in footer and would like to open the Poppy form when clicked -

how do I get that?

Share this post

Link to post
Share on other sites

Add to pagelines-customize functions.php/child theme functions.php....


function be_menu_extras($menu, $args) {
$extras = do_shortcode( '<li class="menu-item menu-item-type-custom menu-item-object-custom">[poppy type="a"]Contact[/poppy]</li>' );
return $menu . $extras;
add_filter('wp_nav_menu_items','be_menu_extras', 10, 2);

Share this post

Link to post
Share on other sites

I thinks the name of the menu is passed in the second var $args, use plprint/var_dump or something to print it out, then use some logic.

Share this post

Link to post
Share on other sites

I tried adding this code to my customize paglines function child theme.


1) how do you get poppy to fire from a menu click.


What settings in Appearance - >Menus -> Menu Structure -> Customize


a) URL?

b) Navigation Label?

Share this post

Link to post
Share on other sites



1. You can not have Poppy trigger from a menu item you have added, you will need to use the custom hook above.


2. Not sure what you mean by URL? URL for what ?

Please search our forums, before posting!

Share this post

Link to post
Share on other sites

  • Similar Content

    • emilyf
      By emilyf+
      Is there a way to customize the contact us form that Poppy uses?
      At the very least, I would like the e-mail to indicate which page on our website that the form was submitted from. Ideally, I would turn it into a 3 or 4 question form with a radio button or two (beyond the basic text area block). Any ideas about how I could accomplish this?
    • gregory.guz
      By gregory.guz+
      So basically my question is if I can add Poppy contact form to the Salebar button link without any additional codding?
    • mogulskier9
      By mogulskier9
      I keep getting the following error when testing out the Poppy mail function on my site at: 59sp.mparkerdev.com/work
      I've used Poppy previously on other sites with no problem, so not sure what the issue is.  I've tried different emails, deleting and reuploading plugin, and the usual steps.  Based on some of the other forum threads, I'm wondering if this is something on the server side that I need to fix (permission issue?). Any help is greatly appreciated, and if there's an alternative to Poppy that anyone recommends, please let me know!
    • jorgepereiraok
      By jorgepereiraok
      Hello,    I wonder which way to insert the email contact in the Poppy Contact Form plugin .  Well from what I saw just enter the shortcode and the button now starts to work, but how do I know where you're going emails that are written by this plugin?
    • mistrmint
      By mistrmint+
      The poppy envelope using "[poppy type="i" class="icon-envelope icon-4x"] [/poppy]" just displays a rectangular block.
      Site : http://empoweringmothers.yourdemosite.co.za/
      Look in footer section.