Some questions about Search - by designerobot

This topic has 13 replies, 2 voices, and was last updated 6 years, 3 months ago ago by Rose Tyler

  • Avatar: designerobot
    designerobot
    Participant
    January 12, 2018 at 12:21

    Hello, I’ve some questions about the SEARCH function included in the theme.

    1. In “Theme Options / Header Settings” I have enabled “Enable search form in header”. But in “Search post type” I can choose only products or posts. I would like a search on the entire site, so can I choose: product, posts and pages? Or at least post and pages (the woocommerce part is not yet used).

    2. How could I edit the page with the results? Can I set my own custom page for example without sidebar and page heading?

    3. The search button now is in English. Other descriptions too. Can I change them without WPML? The website of my client has only one language and it is not English in this case.

    4. I’m using the header type no. 11, I would like to insert another link (with social icons) close to the search button, how could I do it? What file I need to modify?

    12 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 12, 2018 at 14:28

    Hello,

    1. Unfortunately, there is no such option and this is requested additional customization. Sorry, but customizations are not covered under our Support Policy.
    If you need help with additional customization contact WP-Kraken team.
    2. There are no options to edit this page via admin panel, but you may use custom css code, for example,

    .search.search-results .sidebar {
        display:  none;
    }
    .search.search-results .content {
        left: 0;
        width: 100%;
    }

    3. Use Loco Translate plugin http://xstore.helpscoutdocs.com/article/30-base-theme-translation (the same for woopress theme).
    4. If you want to edit header type 11 you can customize the wp-content/themes/woopress/headers/header-structure-4.php file. Make changes using a child theme https://codex.wordpress.org/Child_Themes to prevent losing it after theme updated.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    January 12, 2018 at 16:53

    Thanks for the answers.
    Regarding the point 1, maybe in the next update of the theme, you could consider inserting this function. I think that other people too could find very helpful to search in “posts” and at the same time in “pages” too. Please consider it.
    Regards

    Avatar: designerobot
    designerobot
    Participant
    January 12, 2018 at 16:59

    By the way, point 2 doesn’t work (I insert the code in the child, as you can see in pvt)

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 15, 2018 at 09:10

    Hello,

    1. I will pass your request to our developers, but I can’t give any guarantee.
    2. Please change the previous code, to:

    .search.search-results .sidebar, .search.search-no-results .sidebar {
        display:  none;
    }
    .search.search-results .content, .search.search-no-results .content{
        left: 0;
        width: 100%;
    }

    Regards

    Avatar: designerobot
    designerobot
    Participant
    January 15, 2018 at 16:40

    Thanks for the reply.
    Now sidebar is finally not present, but the page heading is still present.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 15, 2018 at 16:45

    Ok. Please provide me a screenshot for better understanding which text do you want to remove.
    Thanks in advance.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    January 15, 2018 at 16:52

    I would like to remove all this block with the page heading (see the link in pvt content), like when I select “Disable” in “Page heading” in the options of the page

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 15, 2018 at 17:00

    In this case, please use this code also –

    .search.search-results .page-heading, .search.search-no-results .page-heading {
        display:  none;
    }

    Regards

    Avatar: designerobot
    designerobot
    Participant
    January 15, 2018 at 18:37

    Perfect, thank you very much!!!
    Regards

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 16, 2018 at 09:16

    You’re welcome!
    Have a nice day.

    Regards

    Avatar: designerobot
    designerobot
    Participant
    January 16, 2018 at 13:27

    Hello,

    I’ve just discovered that in the Widget section there is a widget called “8theme – Search Form” that permits to search in all things (posts, pages, portofolios, products, etc.) at the same time.

    I’ve only one question, why if I search with none text I’ve all pages as result? It seems a bug.

    Moreover the last two results are “Footer” and “Footer-jewellery”, even if these two pages are not present in any place. How can I remove these two pages from the results?

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 16, 2018 at 16:35

    Hello,

    This is not a bug with an empty search field, it is default functionality of WordPress. You may activate a default theme and check work of default search widget.
    “Footer” and “Footer-jewellery” are static blocks. To hide static blocks from search results, please use this code:

    .search-results .staticblocks {
        display: none;
    }

    Regards

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

You must be logged in to reply to this topic.Log in/Sign up

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