Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #751087

    Hello,

    I’m trying to get my site to pass a SiteLock scan. I don’t want to get into if that is a good idea or not, it’s being required as part of a contract.

    Anyway SiteLock is complaining because text that is added as a search parameter is being returned on the 404 page inside the search box. How can I change the 404 page so that it still includes the search but does not automatically add the parameter text to the search box.

    Thanks,

    Mark

    #753281

    Hey Mark,

    I tried to check on your site and tested the search that would result in nothing found, and it doesn’t redirect to 404 page. I have posted the link in Private Content.

    Best regards,
    Nikko

    #753336

    I found a way to get around the SiteLock complaints.

    In the file themes\enfold\404.php I added this as the second line of code:
    set_query_var(‘s’, ”);

    This clears out the “s” query string variable that they were passing in on the test that was then being echoed by the default WordPress search form. At least that was my best guess as to what was happening.

    #753911

    Hi,

    Glad this is sorted! To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Preventing 404 Search Page from defaulting search text’ is closed to new replies.