sidebar-shop.php
and use get_sidebar();
?archive-product.php
or content-product-cat.php
woocommerce.php
can accept changes. what should I do?I just installed WooCommerce on a site and the WooCommerce widgets are missing in the admin widget area. For example, there is no WooCommerce cart widget that I can add to a widget area.
]]>New to WC– any ideas appreciated.
]]>I’m trying to make the product titles in my website dukayn.com 5 words long everywhere (except on the product page)
I have got the following custom code working perfectly fine on the home page & shop page. However, I’m struggling to make it work on the Woocommerce widgets. I’m referring to the widgets just above the footer: New in, Featured, On Sale, Our Picks
the piece of code is_active_widget('', '','woocommerce_products-2')
doesn’t seem to have any effect
// Shorten product title page
// Automatically shortens WooCommerce product titles on the main shop, category, and tag pages
// to a specific number of words
function short_woocommerce_product_titles_words( $title, $id ) {
if ( (is_front_page() || is_shop() || is_product_tag() ||
is_active_widget('', '', 'woocommerce_products-2') ||
is_active_widget('', '', 'woocommerce_products-3') ||
is_active_widget('', '', 'woocommerce_products-4') ||
is_active_widget('', '', 'woocommerce_products-5') ||
is_product_category() ) && get_post_type( $id ) === 'product' ) {
$title_words = explode(" ", $title);
if ( count($title_words) > 5 ) {
return implode(" ", array_slice($title_words, 0, 5)) . '...';
} else {
return $title; // If the title isn't longer than 5 words, it will be returned in its full length without the ellipsis
}
} else {
return $title;
}
}
add_filter( 'the_title', 'short_woocommerce_product_titles_words', 10, 2 );
Anyone who have tried to do something similar and could help?
]]>I really appreciate any help with this. Thank you.
This screenshot below shows the filter button in question:
Also is there anyway I can remove the submit (filter) button for woocommerce price filter widget and make the price slider find products with prices within the slided range automatically without having to click the submit button?
I really appreciate any help with this. Thank you.
]]>When opened Widgets in admin, I see a message
Hey, I see WPML is not activated, please activate it before using WPML Widgets.
But as said – all these WPML plugins and addons are activated and working.
Even before “WPML Widgets” install the other widgets had the translation selection in widget bottom, but only WooCommerce widgets did’nt have.
I need this plugin, because WooCommerce Shop page cannot have widgets in the sidebar (categories and product search) associated for different languages.
https://www.ads-software.com/plugins/wpml-widgets/
]]>woocommerce login widget
<div id=<“woocommerce_login-5i”>
woocomerce shopping cart widget
<div id=<“shopping_cart-3i”>
There appears to be an extra < after the = sign.
The widgets are simply added to the sidebar, nothing special. Has anyone else had this problem ? and is there a fix ?
]]>