Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS/PHP WordPress – 3 Column Ecommerce Search Results

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26221
    spate1y
    Member

    Hey Everyone!

    I am creating a ecommerce website using WordPress for a school store (selling clothing and other spirit wear for their school).

    Now I ran into a little issue with the search results page. The school would like the results page to have results in a 3 column layout sort of like (http://oldnavy.gap.com/browse/search.do … submit.y=8).

    Any ideas on how I could do this?

    #64649
    mizwo
    Member

    Do you mean three search results side by side? just give the results entries a fixed width and let them float. the smaller the width the more are shown side by side.

    #64651
    spate1y
    Member

    So do I just repeat the search result code for WordPress side by side?

    If you could give me an example of WP site that does this or show me an example of the code, that would be nice.

    #64658
    mizwo
    Member

    goto your search.php within your theme directory and edit the following line

    Code:
    >

    to

    Code:
    >

    this way you add another class (with the predefined classes for posts) to your search results.
    now you can define a new class, something like this:

    Code:
    .boxed-search-result {
    width: 150px;
    height: 150px;
    float: left;
    }

    within the default kubrick theme, this way, 3 results are shown side by side. sure you should include like only the title, an image and the price instead of the "comments" and "posted in" links and the creation date, but thats up to you =)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.