You’re substr()
on the span which will chop the closing span off. I think what you want is:
return '<span class="title-tooltip">' . substr( $title, 0, 34 ) . '</span>';
Related Posts:
- woocommerce related product title length
- How to check if a plugin (WooCommerce) is active?
- How to get Woocommerce order product info
- Woocommerce auto cancel On-Hold after X days
- Blank on static home page?
- Use wc_enqueue_js only on specific pages – nested add_action
- Replace existing content from specific WooCommerce admin orders list column
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- Customized title tag for each page in pagination?
- Woocommerce filter cart and category specific quantity [closed]
- Use is_product_category() properly
- How to get woocommerce cart content without an action?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Changing Woocommerce flat rate every nth number of items
- Woocommerce product download URL
- How to select WooCommerce products by post_meta and order them
- Limiting woocommerce line_total decimal length
- How can I use wp_query to show all product data using just the products ID?
- Get stock by custom meta field on all Woocommerce variable products
- Set a condition based on WooCommerce checkout city field while placing order
- Call global variable array() in woocommerce child/template
- Remove price from Woocommerce variable product dropdown menu
- Get and insert order email address to the PHP template inside HTML text
- If no products are on sale – hide ID or class
- do search in two site and show the result in first site
- Which field should I edit to make the checkbox marked by default?
- wordpress + woocommerce display product with additional information [closed]
- How can I pass a custom/dynamic product to the Woocommerce cart?
- How to get private property in parent class into extended class?
- Change page title from page using php via php executed from page/post itself
- Replace Woocommerce “add to cart” to be “Download” button [closed]
- Woocommerce Email attachments not working – file not being attached
- Reduce size of responsive title
- Change product_base programmatically
- WooCommerce pages looks unstyled
- customize woocommerce templates and display store on home
- WC_Customer delete function returns error
- How to display a custom product field value of a specific category on a Woo Commerce checkout page?
- Personalize checkout text
- Disable if there are no children – Woocommerce
- Woocommerce: remove total sum from new order’s email [closed]
- custom post type with role Vendor
- WooCommerce: Display product categories to make IF statement
- Custom Taxonomy Select Menu: Setting default option value?
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Display Sibling WooCommerce Product Categories on Archive Page
- How to sort WooCommerce products page by latest in-stock items first?
- WP_Query for woocommerce products with a pattern as a post_title
- Generate images with html2canvas and the woocommerce api
- Add Custom Category Description When Empty
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- How to update ticket price programatically when adding to cart and checkout in woocommerce
- Woocommerce My acount page
- Get WooCommerce products with similar SKU
- Display div if category has a specific parent
- global $product is empty string when passed into function
- Use CSS tag inside PHP code
- Set ACF on order during checkout
- Hide payment method based on user role AND minimum cart value
- How can I show how much water got saved on this order (making use of the number of items bought) on a thank-you-page?
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- IF statement not working – Any suggestions?
- WooCommerce function not working correctly after moving from the functions.php into a class
- Filter for product subcategory listing page load
- Reduce Stock Based on Custom Variation Field Rather than Attribute (Working Script)
- get_filtered_term_product_counts – Get product terms if any products
- Get x numbers of a woocommerce category products using Wp_Query
- Get field value and use as variable in php
- Set notification if is two product category in cart
- AJAX to add to cart multiple products woocommerce
- How can I get the custom post title?
- Reverse Cross-Sells (WooCommerce)
- Search function not working
- loop to return tags in woocommerce in alphabetical order?
- WooCommerce – Add Shipping class below each product in Shopping Cart page
- WooCommerce Custom Tab with ACF Repeater Field
- Woocommerce variable products are being added to the card on the homepage (ajax)
- Display text of price (minus 20%) on every product page in a sentence.
- Replace Underscore (_) on Space ( )
- Display product attributes for current product
- Getting the date_diff function return the difference in days
- How to remove image on single product and get product to span page?
- Need some help with tweaking a code for woocommerce [closed]
- Custom field in title
- Adding placeholder text field to woocommerce checkout [closed]
- Getting custom field data from cart page to checkout page in woocomerce [closed]
- Send a custom notification to customer on WooCommerce cancelled order status
- How to code bulk order form in wordpress
- FATAL ERROR , Sommerce Theme [closed]
- Woocommerce linking variations
- Show button in header when product custom field is not empty
- WordPress 6.1.1 UTF8 Slug Limit Increase
- How call WordPress shortcode inside function file
- Woocommerce Convert existing order to the cart
- strict custom php script on specific product category [closed]
- How to change shipping method title based on cart amount?
- How to add SKU and remove product title from WooCommerce url?
- Product Search in search.php
- using custom pages for myaccount in woocommerce
- PHP Add products to cart with WooCommerce Addons