Remove the action from it’s hook, then add it to a different hook (corresponding to where you’d like it to display). You can view the available hooks by viewing the WooCommerce single-product.php and content-single-product.php template files. Just like it all of WordPress anywhere there is a do_action( 'some_hook_name' ) that signifies an action hook that you can attach functions to. Here is an example (for your functions.php) that will move the related products output to outside the #product div.
function wpa_115808(){
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );
add_action( 'woocommerce_after_single_product', 'woocommerce_output_related_products' );
}
add_action( 'woocommerce_before_main_content', 'wpa_115808' );
Related Posts:
- What are the common security flaws I need to look for? [closed]
- Contact form 7 select box different value-text than content-text in option [closed]
- Validation error: Extending Gutenberg gallery block
- WP JSON REST API (Ryan McCue) how to query posts with specific meta data with ‘AND’ relation?
- Send email when a new post is published [closed]
- Creating a user’s own folder on user registration
- Limit access to posts/pages by user roles
- Why my browser keeps loading old version of custom JavaScript files in \divi\js? [closed]
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- How do I extend one plugin I’m writing with another I’m writing using classes?
- Using Advanced Custom Fields with WordPress and Lightbox
- Plugin for sharing on social sites? [closed]
- how to customize hello dolly plugin?
- How to enable Admins to see Plugins
- How is the WordPress.org plugin download history calculated?
- How To Add an Extra Field in All WordPress Available Widgets?
- Adding Visibility Options
- Check out Attribute on WooCommerce
- Specific post user permissions
- Woocommerce: is it possible to replace “download” a file with simply read the file on screen?
- Problem with Search Results in WP (not displaying the full posts)
- I can’t access wordpress functions from an ajax php call
- Add extra parameter in tag using script_loader_tag
- Deleting images through upload folder, but not deleting from media library
- how to use ajax to display from database and load more in wordpress plugin
- Sub menu with a URL parameter and access the page
- How to restrict an entire WordPress site to visitors, but the register and login page?
- Is revealing just the AUTH_KEY a security issue?
- How to exclude a widget from page 1 of a paginated post
- I can’t upload a new wordpress theme from a zipped file
- Is there a plugin which disables other plugins for mobile browers?
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- Storing a password for use with a WordPress plugin
- Diagnosing plugin conflicts
- Is it possible to integrate WordPress *posts* and social media (Facebook, Google+, Twitter)? [closed]
- Licensing: Can I include SWFs without source in a plugin released on wordpress.org?
- Twitter-like follow system, is there any plugin?
- Tag link suggestion plugin
- Sort products without thumbnail in WooCommerce shop page
- How to create tutorials/book in WordPress [closed]
- Create or Update thousands of woocommerce products via PHP
- Automatically adding category filter based on search string
- Looking for a solution – slightly convoluted problem
- Is it possible to use Snap Scrolling? [closed]
- WordPress Plug-In Active installation count
- wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn’t creating any tables on plugin activation
- Can wp_localize_script be used within a shortcode?
- WP Paths in a Plugin – how to include
- How to export a list of all media urls? [closed]
- Last modified field for user profile?
- Adding content before the loop in category pages
- admin_notices hook show message all admin pages after plugin activate
- Deactivate Plugin on Theme Switch
- Two people sharing user in WordPress [closed]
- Update User Role
- Update Option Error: Notice: Undefined index
- Why this global array is returning NULL from a callback function
- How to define WordPress plugin shortcode globally for multisite?
- WordPress Multisite plugin delegation
- Why my Plugin keeps deactivating automatically?
- how do i remove posts from a WP_Query so the pagination is right?
- How do I tell what plugins are used on my multisite install?
- Self deactivate plugins after an action occurs
- How to check if you are on widget.php page?
- How to get current post user id
- Plugin. Html code in Template
- wp_redirect() not working in Insert PHP plugin in WordPress
- Shortcode based chart plugin
- Unable to upload wordpress plugins
- The problem with WordPress Importer
- Good rating plugin that doesn’t depend on an external service?
- switched from query_posts to WP_query, not working now?
- Rotate Widgets or Content Blocks every x sec/min
- Information and Videos for Customers in the Backend [closed]
- How to find the origin of a file upload from within wp_handle_upload?
- Matching Chapters to a Custom posts [closed]
- How to get the element ID from new menu list that added with add_filter()?
- Ajax contact form widget plugin data not insert in database
- Install Plugin via Code
- How to display custom sidebar in wordpress 5.5.2
- woocommerce_package_rates not fired when wordpress woocommerce accessed as non ajax
- Is there a standard way to listen for an on change event of a posts featured image
- How to output CMB2 select options from repeated groups select elements?
- Delete query not working in plugin
- SEO Friendly URL on dynamic product page produced via shortcode
- Why is WPBakery Page Builder backend editor not clickable? [closed]
- Multiple Billing forms in WooCommerce (one billing form per product)
- Homemade plugin while using Themify Ultra
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- Product queue for my subscription box
- How to disable search as you type plugin suggestions?
- register_taxonomy and variable rewrite slug
- WP All Import – Execute Imports
- Migrating hosts, 500 errors and plugin issues
- Ajax Search Lite: Customize Autoscroll
- Create buttons with a plugin who accept shortcodes? [closed]
- External RSS feed to WordPress Portfolio
- Updating plugins asks for FTP information, why? (this is a new one)
- Create Gallery using Custom Post Type and add sum gallery as sub gallery of Main Gallery
- do_action() hook into load-(page)