Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Update problem – Product column alignment

alignmentColumnproductProduct alignmentwoocommerce
    • 9 years ago puzzlerdesign
      Participant

      Expired

      Hello,

      after the last update of the theme the are a lot of problem with alignment of products like this

      View post on imgur.com

      on this pages:

      https://www.dcmstampa.it/led-display/

      https://www.dcmstampa.it/supporti-rigidi/

      https://www.dcmstampa.it/supporti-flessibili/

      there must be 4 column alignment.

      Let me know how can I solve this bug

       

    • 9 years ago Mirela
      Participant

      Hello,

      Please go to file woocommerce/content-product.php and find these lines:

      if ( 0 === ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) {
      	$classes[] = 'first';
      }

      Replace with this:

      if ( 0 === ( $woocommerce_loop['loop'] ) % $woocommerce_loop['columns'] || 1 === $woocommerce_loop['columns'] ) {
      	$classes[] = 'first';
      }

      Let us know.

      Best regards!

      • This reply was modified 9 years ago by Mirela.
    • 9 years ago puzzlerdesign
      Participant

      Expired

      This reply has been marked as private.
    • 9 years ago Mirela
      Participant

      Hello,

      Sorry for the late reply.
      Can you please send us your ftp credentials in a private reply? So we can do this for you.

      Best regards!

    • 9 years ago puzzlerdesign
      Participant

      Expired

      This reply has been marked as private.
    • 9 years ago Mirela
      Participant

      Hello,

      The login issue is not due to the last changes. They are not connected to it. Perhaps a newly installed plugin gave the issue or you may have corrupted wordpress files in your server.
      I suggest you to go to your plugins folder using ftp. And rename all plugins. This should deactivate them all. If you manage to login then one of you plugins was the issue. Rename back to original and activate one at a time to find the culprit.
      Do the same with theme, rename it and try again.
      Another reason could be the database. the lack of disk space can cause some database corruption. If it is damaged then you will need to perform a database repair operation. Contact your host regarding it.
      Please read this article for more detailed information.
      Let us know.

      Best regards!

    • 9 years ago puzzlerdesign
      Participant

      Expired

      ok, I gonna try it.

      And what about the first problem?

    • 9 years ago Mirela
      Participant

      Hello,

      Please update theme. This issue is fixed in the recent update.

      Best regards!

    • 8 years, 12 months ago puzzlerdesign
      Participant

      Expired

      I already have the last version of the theme 1.8.1

    • 8 years, 12 months ago Mirela
      Participant

      Hello,

      Can you please be more clear? What issue are you referring to? The product alignment is already fixed in the last update. And i already replied you concerning login issue.

      Best regards!

    • 8 years, 12 months ago puzzlerdesign
      Participant

      Expired

      Hello,

      I have the last update of the theme, but the alignment problem doesn’t change.

      The login problem I have solved. It was a database corruption.

    • 8 years, 12 months ago Mirela
      Participant

      Hello,

      We will double check it and upload a new theme update if necessary. In the mean time i have made the changes to your woocommerce/content-products.php file. Please check your site.

      Best regards!

    • 8 years, 12 months ago puzzlerdesign
      Participant

      Expired

      This reply has been marked as private.
    • 8 years, 12 months ago Mirela
      Participant

      Hello,

      I edited this line in file woocommerce/content-products.php,
      if ( 0 === ($woocommerce_loop['loop'] + 1) % $woocommerce_loop['columns'] ) { to this:
      if ( 0 === ($woocommerce_loop['loop'] - 1) % $woocommerce_loop['columns'] ) {

      Also i added this code into your custom css box:

      .woocommerce ul.products li.last, .woocommerce-page ul.products li.last {
          margin-right: 20px !important;
      }

      The products space in these pages, is ok now.

      2-Please use 4 column for the time being. We will fix this in th enext theme update.
      Thank you for your cooperation.

      Best regards!

Viewing 13 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password