• Resolved macpheek

    (@macpheek)


    Hi – fantastic plugin!
    Just one question – how can I add an enter / submit icon into the search box?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    Unfortunately there is no way to do this with the default search box that comes with my plugin however you have two options:

    1. Write some javascript to inject it in after the page loads.

    2. Disable the default search option and put your own html in the additional content option.

    Hope that helps!

    Peter

    Thread Starter macpheek

    (@macpheek)

    Hi, thanks for your reply. Is there anyway I can add a widget to the additional content? I have tried adding <?php dynamic_sidebar( ‘search’ ); ?> but noting is displaying.

    Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    You can’t use PHP code directly but you can use shortcodes so if you just turn your PHP code into a shortcode then you can use that instead 🙂

    Peter

    Thread Starter macpheek

    (@macpheek)

    thanks for your help 🙂
    For anyone who is reading this and doesn’t know how to convert php into shortcodes – here is a handy plugin I found – https://ww.wp.xz.cn/plugins/custom-shortcode-creator/

    Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    Cool plugin, I normally just code my own as they are very easy to do but this is useful if you don’t know how.

    The shortcode API docs from WP are pretty clear on how to create custom shortcodes too:

    https://codex.ww.wp.xz.cn/Shortcode_API

    Peter

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘search icon’ is closed to new replies.