Home › Forums › WoodMart support forum › Problem with Woocommerce Shop page
Problem with Woocommerce Shop page
- This topic has 3 replies, 2 voices, and was last updated 1 month, 3 weeks ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
September 25, 2024 at 11:24 am #599943
jdiproduction.grParticipantHello I am experiencing an issue with my website in the woocommerce shop page. I am contacting you first because this is the first time it happened using your theme. In the shop page I have it set to show 4 products per row and 60 products in one page, it shows 4 products on each row and 60 products on each page but after the 10th product it shows them kind of broken as I have sent you the picture for a sample. I reduced the number to 12 or even 11 and 10 but it always happens after the 10th product. I have also sent you a screenshot of the DevTools HTML which shows the product page grid has 10 products, and after that it shows the rest of the products seperate from that <div>. I have also tried deleting and reimporting the products but still didn’t work.
- This topic was modified 1 month, 3 weeks ago by jdiproduction.gr. Reason: Image file size too big to send so I'm resending a different one
Attachments:
You must be logged in to view attached files.September 25, 2024 at 2:37 pm #600047
Aizaz Imtiaz AwanKeymasterHello,
Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then Activate the 3rd party plugins one by one and check which plugin is creating the issue for you.
Otherwise, if the issue still exists then keep the 3rd party plugins deactivated and share the WP admin login details of your site so I will check and give you a possible solution.
Best Regards
September 25, 2024 at 3:07 pm #600072
jdiproduction.grParticipantHello I tried disabling every unnecessary plugin, I only left Elementor, Woocommerce and Woodmart Core which didn’t change anything. Since we have written quite a bit of custom code in the functions.php I checked there the same way each chunk of code for each functionality. I haven’t figured out why but the following code which is to shorten the titles of products caused it, when I commented it out the bug got fixed.
// Shorten product titles
add_filter(‘the_title’, ‘shorte
function shorten_woo_product_ti
if (!is_singular(array(‘product
$length = 50;
if (mb_strlen($title, ‘UTF-8’)
$title = mb_substr($title, 0, $
}
return $title;
} else {
return $title;
}
}
// END Shorten product titlesWe have the exact snippet in all our other websites too but never got this bug. If you figure out why it caused it please do tell me! I recently found that the Woodmart Theme has that functionality integrated so there is no need for that snippet in this website.
Have a nice day.
September 26, 2024 at 9:21 am #600251
Aizaz Imtiaz AwanKeymasterHello,
You do not need to use this code. You can do it in theme settings. Navigate to Theme Settings > Product Archive > Product Styles > Product title lines limit. Set the number of product title lines if it does not fit on one line.
https://ibb.co/2kztmN5Best Regards
-
AuthorPosts
Tagged: product page, woocommerce
- You must be logged in to create new topics. Login / Register