Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
what-the
tagDiv Member

So I believe the issue is that we bought your framework with another email but I registered it under my email. I need to get this issue resolved ASAP!

what-the
tagDiv Member

What if you have 3 subdomains that is all part of the main website?

what-the
tagDiv Member

This does not work anymore! The new changes and updates for the newspaper theme is making this code no longer valid! It does not work!

what-the
tagDiv Member

???

What the?

Why should we have to pay for it when we originally had it working BUT YOUR UPGRADES MESSED IT UP! NOT COOL AND NOT FAIR. Please check out this link to confirm with what we are saying!

https://forum.tagdiv.com/topic/adding-short-description-as-an-excerpt-to-the-td-composer-woo-product-block/

what-the
tagDiv Member

So we are having an issue.
When adding this filter to the functions.php its not working. Is there another functions file that is created in another nested directory for the newspaper template? We want to add this filter to limit the short product description for the woo product block.

Thank you!

add_filter( ‘woocommerce_short_description’, ‘prefix_filter_woocommerce_short_description’ );
/**
* Limit WooCommerce Short Description Field
*/
function prefix_filter_woocommerce_short_description( $post_post_excerpt ) {
// make filter magic happen here…
if(! is_product() ) { // add in conditionals
$text = $post_post_excerpt;
$words = 10; // change word length
$more = ‘ […]’; // add a more cta

$post_post_excerpt = wp_trim_words( $text, $words, $more );
}
return $post_post_excerpt;
};

what-the
tagDiv Member

Is there not a way to add to the function.php a add_filter like this:

add_filter(‘woocommerce_short_description’, ‘limit_product_short_description’, 10, 1);

function limit_product_short_description($post_excerpt)
{
if (!is_product())
{
$pieces = explode(” “, $post_excerpt);
$post_excerpt = implode(” “, array_splice($pieces, 0, 14));
}
return $post_excerpt;
}

We really want to limit the characters on the product short description

Thanks!

  • This reply was modified 4 years by what-the.
what-the
tagDiv Member

We know this! Can you please let the developers know for future updates? Can we get a work around for this for the meantime? Like the css?

what-the
tagDiv Member

???

This doesn’t limit the characters on the short description. It only modifies the padding on the product divs.

what-the
tagDiv Member

It works. Wow. Thank you Bettina! We’re loving the TD composer! 😉

what-the
tagDiv Member

We totally agree! Except the custom css that we wrote no longer works because your developers did some backend changes.

The custom code we had was:

.td_woo_product_module a.button {
float: right !important;
margin-top: -50px !important;
clear: right;

}

When we open up the page in google chrome and use the developer tools we can make changes right then and there to make modifications to the css. Nothing is working for us. We just need to at least to know what you guys did this time with the new updates that’s not making these custom css changes not work.

Thank you!

what-the
tagDiv Member

We just want the buy button to float to the right. Not to the left. Thank you

what-the
tagDiv Member
what-the
tagDiv Member

Ok I’m thinking because its the div: block. Can’t we not change this to a inline-block?

https://snipboard.io/4a2XQE.jpg

what-the
tagDiv Member

the new newspaper updated deleted everything uggggghhhh!

what-the
tagDiv Member

Well neverminded. We figured it out. From the WordPress top navigational bar when viewing the page. We assigned the cloud template to the shop page.

Thank you!

what-the
tagDiv Member

Anamaria you rock!!!

It works perfect!

Thank you!

what-the
tagDiv Member

so in other words I’m assuming we can adding the limit characters in the code you provided below in the image you gave us.

https://imgur.com/UjJJC1i

what-the
tagDiv Member

The code from this image wasn’t even enabled and the code you gave us automatically showed up in the woo product block. So I figured that we can limit the characters in the php tag within the actual woo product block code.

https://snipboard.io/R1D9Gn.jpg

what-the
tagDiv Member

Do you have a quick solution in limiting the characters of the short description?

php echo $this-> product->get_short_description()
, 0,200 ); echo ‘…’

???

Thank you

what-the
tagDiv Member

Oh ok. Will check it out ???

what-the
tagDiv Member

A lists of suggestions for future updates. Thank you!

what-the
tagDiv Member

Maybe in the TD composer future updates we can use it on the actual woocommerce product pages instead of creating cloud templates then applying it. Like how we are able to use it in the WordPress pages. We will make a lists so you can pass it to the developers. You guys are awesome!

what-the
tagDiv Member

The short code is applied to the woocommerce short description on the actual woocommerce product page. On the cloud template I used the TD composer woo description component for the layout. Whatever is in the woocommerce short description from the actual woocommerce product page should show automatically including short codes. One would think at least. I know this is a new feature in the TD composer and know it’ll just keep getting better in future updates. Please let the developers know. Thank you!

Viewing 25 posts - 1 through 25 (of 83 total)