This topic has 3 replies, 2 voices, and was last updated 7 years by Radu.

  • Author
  • #177327
     rlarson87
    Participant

    Hi, when I search using the AJAX search in the primary menu, the search results page has a right column. How do I remove the right column and also display results as list instead of grid?

    Attachments:
    You must be logged in to view attached files.
    #177504
     Radu
    Moderator

    Hi,

    Just add the next code to your child theme functions.php

    COPY CODE
    
    /* Change Layout full-width on search page */
    function change_layout_on_search() {
        if(is_search()) {
            kleo_switch_layout('full');
        }
    }
    add_action ('kleo_header', 'change_layout_on_search');
    

    The function needs to be pasted in wp-content/themes/kleo-child/functions.php

    NOTE : Child theme needs to be installed and activated.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #177517
     rlarson87
    Participant

    Hi, the code you provide is giving me a site error on this line “kleo_switch_layout('full');”

    Please advise

    #177519
     Radu
    Moderator

    Copy again the code from here : https://pastebin.com/raw/vcZ0uVPc and paste it again. it’s a wired quote there.

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?