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
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Validation algorithm in checkout field
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- My new button is in the wrong place
- WordPress Woocommerce – Product Type [closed]
- Pagination for custom shop loop woocommerce
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- Woocommerce change prices for a certain country [closed]
- 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
- echo something inside a shortcode
- Replace Woocommerce “add to cart” to be “Download” button [closed]
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- get taxonomy thumbnail and use it as a variable in code
- Woocommerce Email attachments not working – file not being attached
- Function returns text instead of html [closed]
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- Single Quotes in .php file doesn’t load website
- Add post with approval by the admin
- Reduce size of responsive title
- get_total () returns 0 – woocommerce [closed]
- Run str_replace on title and save the output to a custom field
- How to remove coupon dropdown feature
- Woocommerce display one random product via php
- Echo title attribute php
- Change product_base programmatically
- Add html link in functions.php files of the theme
- require_once() if a product in woocommerce contains a tag [closed]
- How to optimize update_post_meta?
- How to upload WP user avatar on woocommerce account page [closed]
- Add product to cart for user – WC()->cart->add_to_cart [closed]
- Remove item in Checkout
- email alert for product availability
- How to relocate paypal button gateway on checkout page in woocommerce
- How to rename woocommerce-billing-fields
- Can a plugin redirect product page based on IF condition?
- Seo Friendly Filter URLs
- How to display SQL query that ran in WC_Order_Query?
- WooCommerce pages looks unstyled
- customize woocommerce templates and display store on home
- How to disable delivery on certain date at checkout page in WooCommerce?
- WC_Customer delete function returns error
- Only show size attributes in product box woocommerce when available
- How do I change this function from two returns to one string to show sku and dimensions in WooCommerce cart?
- Remove page title in product page using a function
- woocommerce specific quantities for product
- how can i add class or span tag at sprintf?
- Call WC_Product get_price()?
- change title page on search result
- How to display a custom product field value of a specific category on a Woo Commerce checkout page?
- Personalize checkout text
- Display attribute on shop page after the title
- CSS change in woo commerce Place Order Text [closed]
- Woocommerce – get_items() returns empty array
- How do I run code every 24 hours?
- Disable if there are no children – Woocommerce
- WooCommerce – Moving Product Price to the Left of Add to Cart Button [closed]
- Woocommerce Product_cat for current category page
- Exclude product attributes from taxonomy terms loop
- WP All Import / Update stock quantity from multiple XML files
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- woocommerce wc_create_order(); is creating multiple orders instead of one?
- Create a package of products as one Item in woocommerce?
- Woocommerce: remove total sum from new order’s email [closed]
- Include js script ONLY on woocommerce product category pages? [closed]
- WP_Query multiple post results
- Convert Featured products loop into Recent products loop?
- fetch woocommerce product with custom taxonomy
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- Split site title and apply different classes
- Alter Woocommerce product archive structure
- Have Woocommerce show product price if id, when not logged in
- After disabling WPML multi currency, the currency is still handled by the WPML
- custom post type with role Vendor
- How do i wrap woocomerce attribute in list?
- Removing files programmatically
- WooCommerce: Display product categories to make IF statement
- WordPress site with embedded menu – gives You don’t have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server
- Woocommerce custom Plugin in wordpress [closed]
- WooCommerce “Checkout Now” button [closed]
- Custom Taxonomy Select Menu: Setting default option value?
- Insert content into head tag with function
- How do I choose not to display the title header on a specific page?
- How to separate product payment and shipping payment in WooCommerce checkout? [closed]
- How can i programmatically change the SKU of a product based on product variation?
- Execute PHP code only with specific user role
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Add a custom WooCommerce settings tab with sections
- Display Sibling WooCommerce Product Categories on Archive Page
- Checking page before applying image restrictions while uploading
- Custom reduce stock code affecting date_modified – How to bypass?
- Woocommerce order status payment
- Dynamically added custom fields not displayed on WooCommerce email notifications
- Modify WooCommerce used to get all orders in dashboard
- Output product category link from WP_Query
- Woocommerce. Get a list of products in the current category on the archive page and product page
- How to work Woocommerce pagination inside shortcode?