Header Search Filter hide stock quantity and stock status

This topic has 4 replies, 3 voices, and was last updated 5 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: Cem U
    Cem U
    Participant
    June 4, 2024 at 05:47

    I have applied following filter successfully to show the ‘product SKU’ in header search.

    add_filter(‘etheme_ajax_search_products_sku’, ‘__return_true’);

    I want to hide ‘Stock status and stock quantity’ in the header search. (The green highlighted in the image) What is the code for that?
    Thanks.

    Files is visible for topic creator and
    support staff only.
    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 4, 2024 at 08:06

    Hello @Cem U,

    Thank you for reaching out to us with your query. We’re glad to hear that you’ve successfully applied the filter to show the ‘product SKU’ in the header search.

    Regarding your request to hide the ‘Stock status and stock quantity’ in the header search, you can achieve this by adding the following custom CSS to your theme:

    .autocomplete-suggestion .ajax-item-info>.stock {
        display: none;
    }

    You can add this CSS snippet to your theme by navigating to Theme Options > Theme Custom CSS > Global CSS in your WordPress dashboard and pasting the code there.

    If you need any further assistance or have any more questions, please feel free to contact us.

    Best Regards,
    Jack Richardson
    8Theme’s Team

    Avatar: Cem U
    Cem U
    Participant
    June 4, 2024 at 12:52

    It works. Thank you.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 4, 2024 at 12:52

    Dear Cem U,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Header Search Filter hide stock quantity and stock status’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.