• Resolved GN2011

    (@gn2011)


    I just wasted around 10 hours solid trying to figure out why I couldn’t get any styling on to my search results page via search.php.

    In the end I got so fed up with it I removed big chunks of code which should have stopped the search working altogether and it changed nothing.

    What is going on?

    Could somebody please tell me what file I need to adjust to style the search results output?

    Please, there has to be a simple answer to this question that is driving me insane!

    Many thanks.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter GN2011

    (@gn2011)

    Ok, last thing i’m gonna post because this thread is getting big… (apologies)

    For clarification..

    1) I’m using a child theme of ‘twentyeleven’ called ‘housecall’

    2) ‘housecall’ is the active theme

    3) There is no search.php in ‘housecall’

    4) Here is the source of twentyeleven/search.php : https://pastebin.com/MXyw8JJh

    I’ve removed the default section & container divs and added some text to the file just to show that whatever I do or put into search.php isn’t being parsed to the search results. It’s being totally ignored.

    5) Here are some search results – https://www.gnhousecall.com/v2/?s=house

    If you ‘view source’ you will see that none of my edits have made it to the outputted page.

    Help! ??

    Thread Starter GN2011

    (@gn2011)

    Fixed..

    Re-uploaded entire TwentyEleven theme and now it’s updating perfectly!

    I had a similar problem, I changed the search form to look different, and it then stopped using the search.php file.

    If you have a similar problem, check your searchform.php file and make sure that the search inputs name is “s”. Don’t rename this to search or something else.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Search.php doesn't control the search output like it says in the codex!’ is closed to new replies.