Tagged: enfold, search results
Hello,
I am running WordPress 3.8 with Enfold 2.4.5 installed. I decided to adjust the wording of the search results page and get rid of the tabs that allow users to browse posts instead, since we don’t make any posts on our site.
To accomplish this I made some simple edits to the search.php and loop-search.php files within Enfold. Everything works like it should, but for some reason I now get a horizontal scroll bar with a lot of blank space to the right of the actual site. For example, check out this link for a search of “Test” – http://xdnet.biz/?s=Test
The scroll bar seems to be a result of my sidebar menu somehow, as I have another site that runs Enfold under the same setup, but its search results page has no sidebar and displays like it should, without any horizontal scroll bars.
Any ideas of what’s going on here? Perhaps I didn’t adjust the files correctly… I’m no PHP expert ;)
Thanks!
Ryan
Update: My original idea about the sidebar no longer seems accurate. Here’s another site of mine with the same search edits made that has the horizontal scrolling issue. However, this site doesn’t have the sidebar menu and yet still has the scrolling issue: http://hospitalityscholarships.org/?s=Test
Thanks again for any advice.
Ryan
Hey!
I tested your website with w3cvalidator: http://validator.w3.org/check?uri=http%3A%2F%2Fxdnet.biz%2F%3Fs%3DTest&charset=%28detect+automatically%29&doctype=Inline&group=0 and I guess one html syntax error might cause the issue:
Line 283, Column 194: No p element in scope but a p end tag seen.
…iz/wp-content/uploads/LinkedInButton.png" alt="Join us on LinkedIn!" /></a></p>
You can also remove the scroll bar with css code – insert
body.search {
overflow-x: hidden;
}
into the quick css field.
Cheers!
Peter
Another quick and accurate response from support… you guys rock! :)
Thanks,
Ryan