WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Search Results Page Misaligned (4 posts)

  1. raygun267
    Member
    Posted 1 year ago #

    I have my site build and functioning properly but when I was testing the "site search" function, my results page is not center aligned like the rest of my site pages. I've copy and paste the code from the search.php and index.php into another page, refreshed and it stayed aligned.

    Any ideas for what may be causing this to happen or a solution?

    Let me know what you need in order to help resolve the issue.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Have you validated the page for coding or CSS errors?

  3. raygun267
    Member
    Posted 1 year ago #

    I have and it passed.

    If you type a word in the search field, upper right, you will see that the results page is out of alignment compared to the rest of the site.

    I even took the default code form the 2012 theme, which I tested and it worked before doing so, and placed it in the search.php in my theme and it was still not aligned center.

  4. raygun267
    Member
    Posted 1 year ago #

    I figured it out. I had a .search in the css which was used to align the search form in the header that was causing the issue as it is also used in the search.php.

    So I simply changed .search to .searchbox

Topic Closed

This topic has been closed to new replies.

About this Topic