For example you just want to swap rating and price where price would come before rating, you would do the following.
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 11 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 12 );
Put these lines of code in your theme’s functions.php file.
Related Posts:
- How to add a new product type on woocommerce product types? [closed]
- How can I edit post data before it is saved?
- WordPress hook before inserting post into database
- Making Custom Fields Standard in the Admin UI
- Add custom html to last sub-menu item
- Why isn’t is_home() working correctly?
- Any Hook Called When Post Becomes Published?
- When using the block.getSaveElement hook can you output different markup based on whether or not you are in the edit view or the live page view?
- How to exclude certain widget from showing up on home/front page? [duplicate]
- How to rotate the header image per day?
- WooCommerce Checkout page customization [closed]
- Failed to invoke other hook from the init hook
- Print shortcode in custom action hook not where the shortcode is entered
- Disable email field on WooCommerce customer account details
- Schedule cron event from widget
- Customizing the default logout page of WordPress
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- How to add rewrite rules and pagination to retrieve attachments files?
- How to get multiple Action Hooks in an Array
- woocommerce Add custom field set like billing fields
- Edit admin post page
- Creating Search Engine Friendly URL’s with Word Press
- Make wordpress generate a custom XML file(not a sitemap) that is updated only when new content is posted?
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- Viewing checkout page removes fees from mini cart
- Best place for short bio,image and button [closed]
- Qtranslate + Woocommerce (multiple tinymce) [closed]
- Changing settings of WooCommerce
- Plugin Development – Functions or Hooks?
- Woocommerce – Print Product’s Custom Field In Email
- Advanced WordPress plugin activation detection
- How to append custom text to the output of ‘categories widget’?
- How to load a mycred hook from a plugin?
- How Can I limit the visible part of the short-description on the Category page?
- Translating (WooCommerce) placeholder text
- Customize Widget Navigation
- Hook before user is created and make some custom validation
- How to make WordPress search page use a relative path
- How can Use custom input field in functions.php page?
- customer specific email attachment
- Customize plugin templates
- Check get_post value after wp-admin login
- How to append the excerpt to the content in the single post page?
- Creating Action Hooks For Automatic File Inclusion
- Change post template the proper way
- Display_rows() and column_cb() strange behaviour
- Customizing the built-in Media Playlist
- How to make my wordpress site responds for 2 domains
- Custom Slider Per Page created
- How wordpress plugin hooks works? [duplicate]
- Admin new order email customization
- Consolidate ‘add-to-cart’ buttons into one ‘add-all-to-cart’ button
- Particle.js not loading in WordPress Gutenberg
- How to Add Extra Text In WordPress Title Before Post Publish
- Different profile page by role
- unregister a sidebar widget
- kitchen sink not working
- Custom content plugin for front page in wordpress
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- Troubles about insering a POST with a SQL query, post_status
- Any Good WordPress Client Like Live Writer To Create Static Pages
- WordPress homepage hangs in IE browsers
- How to disable Wp-PageNavi at the top of the page
- Custom Post Type, Custom Columns List
- WordPress pagination with custom post type?
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- 2.9 to 3.0: Pros and cons of upgrading?
- How do I create a Custom Post Box that Connects Different Posts Together
- How to replace blog page url with subdomain at all places, even in xml sitemap?
- Pull Latest Forum Posts within WordPress
- How to setup a membership system in WordPress?
- 404 errors when updating options in admin dashboard
- Where’s did this div element come from?
- query_posts meta_key with current date
- How to activate flash cards
- Add array of post id’s to a category?
- Transferring theme and imported post attachments
- Adding pub_Date to an RSS feed hosted on WordPress
- Get custom field value from not-current page
- Mimicking admin panel menu from wordpress 3.0.1
- RSS feed showing deleted post
- Personalized Gallery what are my options?
- saving the widgets position after drag and drop
- Display WordPress comments before the plugins?
- Download counter for skydrive shared files in wordpress
- Custom page template, not acting as page
- Edit post image attributes on fly?
- Google calendar in wordpress showing events
- Mobilepress fails to translate short codes
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- Trying to use .htaccess to redirect /profile to /login-2?action=profile
- how or where wordress collect unlogged user session
- How to prevent plugin, theme installation failures on WordPress?
- How to create social Share Buttons Without Plugin
- Automatic recurring payment using YITH subscription and Dokan Stripe
- Is it possible to add custom badges to product attributes conditionally, based on custom field?
- wp_enqueue_script JS code runs too late (after user begins interacting)
- Created Custom Block – When I come back to edit post/page and change my block content – Update button stays disabled
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Build a must-use plugin that tracks when other plugins are activated or deactivated