Here is how you do it,
First remove woocommerce single title action, and create your own function to handle the title, later add back the action using your newly created function.
<?php
remove_action('woocommerce_single_product_summary','woocommerce_template_single_title',5);
add_action('woocommerce_single_product_summary', 'woocommerce_my_single_title',5);
if ( ! function_exists( 'woocommerce_my_single_title' ) ) {
function woocommerce_my_single_title() {
?>
<h1 itemprop="name" class="product_title entry-title"><span><?php the_title(); ?></span></h1>
<?php
}
}
?>
Related Posts:
- How to reorder billing fields in WooCommerce Checkout template? [closed]
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- Remove description from on Home
- Filter Widget Title Wrap
- Don’t replace “|” with Empty String (“”) when generating slugs from title
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- Alter only the page title, not the post titles within
- Changing document title only on a custom page template
- Filtering ‘the_title’ with option to return subhead?
- How can I customize the wp_list_categories
- wp_title() empty on a static front page
- Can’t change the title tag with wp_title filter
- Setting title using wp_title filter
- Can’t change a label in woocommerce with the normal filter
- Customize WooCommerce Error Message
- WooCommerce Variable Product Price – Where is “From” text generated from?
- Wrap h1-h6 in a div
- remove_action in plugin file
- How to apply filter at search of woocommerce products?
- Removing an action, or dequeueing style – Both not working
- Variables in post title
- Is it possible to use multiple spaces in title?
- How to append to title via functions.php for auto-posting plugin [duplicate]
- WP action/filter to modify title before header output and article output?
- WooCommerce Custom Product Validation [closed]
- Which filter affects the ‘entry-title’ post class
- Filter media upload attachment meta
- Use of comment_reply_link_args filter
- Filter page title (displayed in browser tab) of wp-login
- Strip $before & $after strings from a page title
- add_filter( ‘the_title’ gets through this if statement twice
- Filter Post Title without affecting screen-reader-text
- Modify WordPress Page Title ()
- How to filter page title for certain page?
- get_the_archive_title hook unwanted changes!
- Hide H1 Title using the_title filter
- Admin filter/error if post title is too long
- Replace Paid Shipping Method With Free Shipping Method WooCommerce [duplicate]
- Auto append text after the title?
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- Changing JPEG compression depending on image size
- Advanced Custom Fields and Yoast SEO keyword analysis [closed]
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- How to disable Gutenberg editor?
- add_filter to youtube embeds?
- How can I detect if a user changes their password?
- SSL certificate for the host could not be verified
- Store source permalink on XMLRPC calls
- WordPress apply_filters() Arguments Missing
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- What is the filter hook for custom fields content?
- Filter keywords from search query
- Add class to woocommerce checkout body based on filter [closed]
- changing variable through filters or action hooks
- How to prepend to the_title for admin-side plugin’s use
- Apply a filter only once
- why does the add_action(‘the_content’) overwrite my page
- Add a header before fields added with the attachment_fields_to_edit() filter
- Are there Limitations on filter handles?
- Hide content editor for posts after approriate date
- Buddypress: Edit activity when new blog post [closed]
- Same Conditionals Not Working on Two Different Hooks
- How to edit dashboard search posts button texts for my CPT?
- Capture post content before page renders
- Empty string supplied as input when parsing content
- How can I remove the kses filters when saving a specific post type ? (it breaks my JSON)
- Remove_action does not work
- Make WP not format code, not insert line breaks in between tags
- the_content filter together with require_once returns 1 instead of the content of the included file
- Missing Argument 2 for apply_filter
- Proper way to replace the_content only for pages created by custom plugin
- How to get a single hook from wp_head()?
- How to apply a filter to an ACF wysiwig editor field output?
- Add sub menu page in your plugin
- Is it possible to bind a function to a filter hook via Ajax?
- Remove tags without a specific meta key from “choose from the most used tags”
- Which Filter Do I Use To Modify The Subject Of The Retrieve Password Notification Email?
- Register users by e-mail
- automatic title through filter
- Filter causing loss of _wp_attachment_metadata
- Buddypress Filter Multiple Activities [closed]
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Having wp-admin on different domain
- Customize plugin’s output: filters or setters: looking for an advice
- oembed_dataparse filter not running at all for standard YouTube embed
- Action for opening attachment or manipulating all attachment links
- Filter wp_mail based on content type
- mu-plugins body_class filter not working
- Enable shortcodes on custom post type
- shortcode function outputs multiple anchor tags
- Show child theme for users on specific IP
- wp.getPosts with status = ‘trash’ using node.js
- Is there a way to overwrite a filter used in canonical.php?
- Custom field in title
- Adding an orderby filter, casting postmeta with multiple keys
- post->post_content filter
- How to change this WP logo and posts url in block editor?