I think it would be best to do a template override in Woocommerce.
If by single you mean a page when viewing only one product then look at the single-product.php template.
The directory it needs to located is: /public_html/wp-content/themes/your-theme/woocommerce/single-product.php.
You can download the template overrides from woothemes.
Related Posts:
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Sending the reset password link programatically
- How to add product in woocommerce with php code [closed]
- Getting only direct child pages in WordPress with get_pages
- How to correctly add Javascript in functions.php
- How to check if a plugin (WooCommerce) is active?
- How to trigger WooCommerce order complete email?
- How to check if woocommerce is activated in theme
- Disable Attachment Pages Completely
- How to add a .php file to WordPress
- How to Remove all Instances of edit_post_link
- Any guides on creating custom admin pages?
- How to get Woocommerce order product info
- Multiple is_page() in page.php
- Woocommerce get selected shipping zone id for the current user
- Edit tag cloud widget number
- How to add date range in woocommerce with code
- How to automatically apply woocommerce product title to all product images alt tags?
- How to check if feed URL was requested?
- Remove Woocommerce product link
- Query WooCommerce orders grouped by several order statuses
- Creating custom Woocommerce attribute taxonomies from a plugin
- get product attributes for current product and store it in a variable
- Create WordPress pages with PHP
- Display sorting options dropdown when using WooCommerce product category shortcode
- retrieve thumbnail from post ID of best selling product in category
- Display a selected custom product option in WooCommerce cart
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- WooCommerce: How to display item meta data in email confirmation using woocommerce_order_item_meta_end
- How to get the original price of the product in woocommerce?
- Woocommerce auto cancel On-Hold after X days
- Is it possible to generate a page without create in the admin?
- WordPress admin never finishes saving page on site with large page count
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- class=”parent” for wp_list_pages?
- WP_Query | Help me create a search term with an ‘OR’ relation?
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- Using Cookie Data For WP_Query Loop
- WooCommerce – Customer Order History Pagination
- How to get Woocommerce Variation ID? [closed]
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- PHP Script within wordpress theme
- Automatically check the option “Enable stock management at product level” on product creation
- The values of custom fields are not available functions.php
- How to show order data by multiple ID?
- Use wc_enqueue_js only on specific pages – nested add_action
- How to Remove a Filter from the Admin List Table?
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Listing all sub-pages?
- Problem with Woocommerce REST API Authentication
- Woocommerce: How to override core functions in functions.php?
- Woocommerce, recognize the loop of related products
- How to link to a custom .php page in my folder
- Replace existing content from specific WooCommerce admin orders list column
- Remove commas from WooCommerce checkout addresses fields
- Add product tag names to WooCommerce new order email subject
- Get only the grandchildren, not the direct children of page/current page?
- WooCommerce Link to Product Category
- Help with a custom page template – listing contents of childpages?
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- Get WooCommerce shipping methods programmatically
- WooCommerce – Display variation custom field value [closed]
- How to display product cropped thumbnail (150×150) for WooCommerce product categories
- Add a custom text field to WooCommerce admin product data “Variations”
- Add to checkout total lines an additional line below shipping in WooCommerce
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- Translating add to cart woocommerce button [closed]
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Append a term to WooCommerce product existing product category terms
- Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products [closed]
- Woocommerce HTML email option unavailable
- Print number of post (in reverse)
- using woocommerce_template_single_add_to_cart in shop-loop – javascript issues [closed]
- How to add SVG icon above product tab title
- How does WooCommerce ensure that a product doesn’t run out of stock during payment? [closed]
- How To Change The Html of Products filtration sidebar in Woocommerce?
- Display related products with custom output
- How To add custom radio boxes to WooCommerce Billing page and change total price by this field?
- WooCommerce: update custom fields after checkout validation failure
- Add attribute / custom attribute to product in woocommerce
- Trigger Woocommerce New User Email
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Woocommerce filter cart and category specific quantity [closed]
- Passing the page ID to a login php script
- Use is_product_category() properly
- How to change / delete product short description in Woocommerce
- How can the plugin directory path be returned into ?
- Add a Different CSS Class Into The Body Tag of Different WP Pages
- How to trash multiple post/product programmatically
- Writing scripts using WordPress / WooCommerce classes?
- My Own layout in WooCommerce pages [closed]
- How to get woocommerce cart content without an action?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Woocommerce – remove product from category
- Limit get_pages to only show 5 items
- How to make custom total price reactive in navigation
- syntax issue on php 7.4
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- How do I publish only one page to production after making changes on staging?
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity