Woocommerce Product Page Template

Overview ↑ Back to top

A professional-looking website is a-must for marketing strategy in just about any niche in recent times. That is why, TemplateMonster's coders have launched the compilation of WooCommerce custom product page templates! All with regard to our customers' businesses! Decide on our templates and start growing your site's guest base instantly. This tutorial shows you how to use WooBuilder to create WooCommerce Single Product Page templates and apply those templates to multiple products using WooCom. I don't know about the Avada theme, but in default WooCommerce you can see in the content-single-product.php template that short description and social buttons are added via hook.So to remove them you'd need to use removeaction from your theme's functions.php. If this doesn't work as is, please review removeaction because you just need to make sure that the parameters match up to what. WooCommerce template structure Navigate to wp-content/plugins/woocommerce/ where you will find the templates/ folder Each file is responsible for a different part of our store. Unfortunately, at this point, there is no map nor visualization which would show all the dependencies among files.

WooCommerce template files contain the markup and template structure for frontend and HTML emails of your store.

Woocommerce single product page template

When you open these files, you will notice they all contain hooks that allow you to add/move content without needing to edit template files themselves. This method protects against upgrade issues, as the template files can be left completely untouched.

Template list ↑ Back to top

Template files can be found within the /woocommerce/templates/ directory:

How to Edit Files ↑ Back to top

Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.

Get

Example: To override the admin order notification, copy: wp-content/plugins/woocommerce/templates/emails/admin-new-order.php to wp-content/themes/yourtheme/woocommerce/emails/admin-new-order.php

The copied file will now override the WooCommerce default template file.

Woocommerce Category Page Template

Warning: Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost. For more detailed information, see Fixing Outdated WooCommerce Templates.

Woocommerce Product Page Template Free

Product

For Custom Templates ↑ Back to top

If you are a theme developer or using a theme with custom templates, you must declare WooCommerce theme support using the add_theme_support function. See Declaring WooCommerce Support in Themes at GitHub.

If your theme has a woocommerce.php file, you will be unable to override the woocommerce/archive-product.php custom template in your theme, as woocommerce.php has priority over other template files. This is intended to prevent display issues.

Setting Up Page Templates ↑ Back to top

To use a page template:

  1. Go to Pages > Add New. Or edit an existing page.
  2. Add a title to your page.
  3. Go to Page Attributes panel in the right sidebar.
  4. Select a Template


Our themes come bundled with unique page templates which add additional functionality and layouts to your pages. These are our standard page templates included in most themes:

  • Blog – Displays all your blog posts which is useful if your front page is a custom page and you want a “Blog” page.
  • Archives – Displays all categories, monthly archives, popular tags and the 30 latest posts
  • Sitemap – A sitemap that shows all your posts and pages.
  • Full Width – A full width page template without the sidebar.
  • Image Gallery– Displays your featured images and links to the post.
  • Contact Form – A page with a contact form.
  • Timeline – A page that has a clean timeline view of all your posts.

Additional page templates might be included in your theme. Read its documentation to see which ones it has.