Tagged: x
-
AuthorPosts
-
February 3, 2017 at 7:31 am #1356706
amihaidaniParticipantHello,
If i add a search field for products, using woocommerce own search widget, or a plugin like yith ajax search – it always using the theme’s search field design, which is great – but the magnifying glass button is not clickable! so, if both plugins act this way, i guess it’s an X issue.
Any help with that?
Thank youFebruary 3, 2017 at 7:31 am #1356707
amihaidaniParticipantThis reply has been marked as private.February 3, 2017 at 12:37 pm #1357047
JadeModeratorHi there,
Please add this code in the CSS customizer:
.form-search:before, .widget_product_search form:before { cursor: pointer; }then add this in the custom JS:
(function($){ $('.form-search:before, .widget_product_search form:before').on('click',function(){ $(this).closest('form').submit(); }); })(jQuery);Hope this helps.
February 3, 2017 at 4:15 pm #1357307
amihaidaniParticipantThank you for your reply.
It makes the button look like it’s clickable now, but clicking on it does nothing.
February 4, 2017 at 12:50 am #1357682
RadModeratorHi there,
Javascript events are not attachable to CSS pseudo selector. It has to be an existing element like a real button.
Please remove the javascript code and add this CSS 🙂
.widget_product_search input[type="submit"] { display: block !important; padding: 0px; position: absolute; left: 0; top: 0; bottom: 0; width: 31px; overflow: hidden; text-indent: 100px; border: 0px; background: transparent; }Cheers!
February 4, 2017 at 11:39 am #1357962
amihaidaniParticipantThat did the trick. Thank you!
February 4, 2017 at 6:30 pm #1358169
Rue NelModeratorYou’re welcome! We’re happy to help you out.
If you need anything else we can help you with, don’t hesitate to open another thread. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1356706 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
