WordPress.org

Support

Support » Themes and Templates » [Resolved] Trouble listing 3 products per row on woocommerce

[Resolved] Trouble listing 3 products per row on woocommerce

  • Joseph
    Member

    @xmsmmgrs

    I am using Virtue 2.1.7 and I have trouble sorting my woocommerce products. I need to sort them by id or date (desc).

    Right now it returns my products like this:

    Row 1 (ID’s): 983, 985, 981
    Row 2 (ID’s): 976, 979, 974

    As you can see, the numbers are not listed descending. It is a theme related stuff because if I change the theme the trouble disappears.

    I have changed the products per row number like this:

    add_filter(‘loop_shop_columns’, ‘loop_columns’);
    if (!function_exists(‘loop_columns’)) {
    function loop_columns() {
    return 3; // 3 products per row
    }
    }

    Any idea how to fix this issue? Maybe some CSS fix?

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author Kadence Themes
    Participant

    @britner

    Post a link, why not update to the latest theme?
    if your products are different sizes then the order would be off.

    Kadence Themes

    Joseph
    Member

    @xmsmmgrs

    Here is a page where you can see the problem. I have added the post ID so you can see the order. See the line starting with product nr 983.

    I cannot update to the latest theme because I customized the old one.

    Theme Author Kadence Themes
    Participant

    @britner

    You should be doing all your theme file edits in a child theme.

    Just go into the theme options > shop settings and increase your product title min height to 60 or 70px.

    Kadence Themes

    Joseph
    Member

    @xmsmmgrs

    Thanks, that did the trick!

    I am not sure how to work with child themes so I edited the original file..

    Theme Author Kadence Themes
    Participant

    @britner

    You might as well learn now, it’s not going to get any better for you the longer you wait:

    http://codex.wordpress.org/Child_Themes

    Kadence Themes

    Joseph
    Member

    @xmsmmgrs

    Thanks. That was easy! I managed to create a child theme. 🙂

    Joseph
    Member

    @xmsmmgrs

    One more thing.. If you check the same page with Mozilla Firefox you’ll see that the last (3rd) column does not stay there. When the page is loading it is in its place, than it disappears. Why is that?

    Theme Author Kadence Themes
    Participant

    @britner

    Just looked and didn’t see this.. which version of firefox do you have??

    Kadence Themes

    Joseph
    Member

    @xmsmmgrs

    I have fixed it in the meantime and forgot to updated the status here. Sorry for that! Thank you for your support!

    MB-Images
    Member

    @mb-images

    It seems like I have the same problem now with firefox. Everything looks fine in IE and Chrome, only in FF I can’t get a 3rd column. So could you tell me how you fixed it? Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Trouble listing 3 products per row on woocommerce’ is closed to new replies.