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?
- How to know what filter to use and how to use it?
- Plugin options, presets and filters : can you help me improve my workflow?
- Filtering Comment Reply Links (comment_reply_link_args) for “infinite replies” in nested comments
- tag removed not using a filter
- Is there any filter to trigger as soon as media is uploaded to post or page?
- Remove posts inside pre_get_posts using a custom query
- Create Search Form to Filter Through Terms
- Remove / Hide Attachment Display Settings in Add Media popup / dialog
- how to customize rss feed tags using hooks?
- External Script Using WP – Hooks / Actions Not Working?
- How to customize the “Insert/edit link” popup box?
- Formatting get_post content doesn’t allow JS content to function properly
- How to filter backend post list showing only posts having a shortcode
- Filtering the post list in the admin area
- Proper after_setup_theme and wp_head cleanup
- URL parameters causing 404 on home page, but nowhere else
- WordPress custom admin notice still displays after wp_insert_post_data validation
- Add Lightbox To WordPress Native Gallery
- Filter pre_get_posts does not modify Mine/All/Pending
- Make WP not format code, not insert line breaks in between tags
- Replace audio links with jplayer using the_content filter
- add img class to native wordpress galleries
- how to use force_filtered_html_on_import in add_filter?
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Sorting a specific taxonomy by archive date using URL
- Filtering get_permalink in Jetpack / ShareDaddy
- wp_mail works with add_action(‘save_post’, …) but not an ajax action
- Get Posts updated or published within the last x hours
- Give “Read More” precedence over excerpt() word count
- WordPress Image update filter
- how to add text to posts from tags
- add_filter with retrieve_password_message() not working in plugin, but works in functions.php
- What hooks to hook onto for automatic cache clearing
- Custom wp_query time filter on meta_value
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- the_content filter together with require_once returns 1 instead of the content of the included file
- How can I replace an oEmbed URL in post with actual embed HTML
- Woocommerce “added to cart” message on main(home) page
- Why doesn’t remove_action work in my plugin?
- Missing Argument 2 for apply_filter
- How to check if a protected hook is hooked?
- Proper way to replace the_content only for pages created by custom plugin
- Modify Redux Framework Options in Child Theme
- add_filter doesn’t work
- Using a filter to modify Genesis wp_nav_menu
- Why does adding a filter to ‘the_title’ break the server?
- How to get a single hook from wp_head()?
- WP filter to alter admin CSS styles?
- Redirect to another page using contact form 7? [closed]
- Filter Hook callback error, is it due to using $this inside a filter or something else?
- Adding a filter to comments_template
- Template filter for custom taxonomy terms
- How to customize category_description()?
- preview_post_link for Custom Post Types
- Add Bootstrap Classes to Recent Posts Widget
- Wrapping my head around add_filter
- Filter the_content to add something before each element?
- Filter an array with a callback – for single & multidimensional arrays
- Add filter to get_posts
- Is there a way to figure out which action/filter invoked a function?
- Add a div of content within the_content after a certain block