Search template different than main template

21 replies3 participantsUpdated by Olga Barlow

  • Avatar: asurelife
    asurelife
    Participant

    We are having problems with the search and certain other pages templates not showing the same as the shop template. When using the search bar the template shown does not show correctly, shows random menu, no sidebar and smaller images

    21 Answers

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Please add this code in style.css file of your child theme:

    .page-template-search-results .sidebar {
        display:  none;
    }
    .page-template-search-results .content.span8 {
        width: 100%;
    }

    Regards

    Avatar: asurelife
    asurelife
    Participant

    This doesn’t effect anything

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Have you cleared cache?

    Regards

    Avatar: asurelife
    asurelife
    Participant

    yes

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Is the problem solved? If not, please provide a screenshot. You can use such screenshot maker as Lightshot https://prnt.sc/

    Regards

    Avatar: asurelife
    asurelife
    Participant

    Correct view includes sidebar and full size image in 4 rows:

    https://www.21floors.co.uk/wp-content/uploads/2019/01/Screenshot-2019-01-28-at-15.44.22.png

    The pages (top selling, on sale, new in) – no sidebar, images in 4 rows squashed to the right

    https://www.21floors.co.uk/wp-content/uploads/2019/01/Screenshot-2019-01-28-at-15.44.36.png

    Site search is the same as above

    Avatar: asurelife
    asurelife
    Participant

    Also, the menu changes for the search for some reason:

    https://www.21floors.co.uk/wp-content/uploads/2019/01/Screenshot-2019-01-28-at-15.48.00.png

    (the yellow borders are not relevant)

    Avatar: asurelife
    asurelife
    Participant

    Help

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    You created page http://prntscr.com/mdt12b and set it as the search results page + chose the custom menu for this page + custom sidebar. If you don’t use search by post, pages etc http://prntscr.com/mdt29j there is no need to create Search results page. I have deleted it.

    Check now.

    Regards

    Avatar: asurelife
    asurelife
    Participant

    Yes, i understand this, thank you .

    This has fixed the search but not the pages layout…
    i.e.
    new products – https://www.21floors.co.uk/new-products/
    top sellers – https://www.21floors.co.uk/top-sellers/
    on sale – https://www.21floors.co.uk/on-sale/

    I am still unable to have the 4 standard columns with left sidebar

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Default WooCommerce widgets work on default wc pages (shop, categories of products) only.

    Regards

    Avatar: asurelife
    asurelife
    Participant

    How can I get the New Products, Top Sellers & On-Sale items showing so I can have a footer link to them

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    You can disable sidebar on custom pages with products – https://prnt.sc/me6fza

    Regards

    Avatar: asurelife
    asurelife
    Participant

    Its not the sidebar i am trying to disable – I am looking to have the shop page filter new products, top sellers or on sales items that can have a footer link

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Sorry, but your request is a bit unclear for me. Please describe the desired result in more details.
    Thanks in advance.

    Regards

    Avatar: asurelife
    asurelife
    Participant

    We would like to have footer links to: –

    New Products
    Best Selling
    Sale items

    These are currently pages but as you have described woocommerce doesn’t recognise pages for the sidebar and shop formatting.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    You can disable sidebar on these pages to get this result – https://prnt.sc/menl0h
    Is it what you are looking for http://prntscr.com/menn5w ?
    Our theme inherits the functionality of WooCommerce plugin, if you want to change things relates to WC, you can contact woocommerce support.
    Additional customization is not included in our basic support.

    Regards

    Avatar: asurelife
    asurelife
    Participant

    I don’t want to disable the side bar – I want to keep it.

    I want a shop page layout for New Products, Best Selling and Sale items and be able to have a footer link to each page/filter

    This filter – http://prntscr.com/menn5w – is only good for each category and not ALL categories – there doesn’t seem to be a filter for Sale items

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Dear,

    There is no possibility to achieve the desired result using available settings, unfortunately. Likely you need to do some additional customization in files.
    Try to contact WooCommerce support maybe they will be able to point you in the right direction.

    Regards

    Avatar: asurelife
    asurelife
    Participant

    Ok many thanks for your support

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    You are welcome!

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register