Jul 10, 2024

In order to effectively display your products on the internet, you'll require product pages that look appealing and easy to navigate. The default template provides all the basics, however you could be searching for additional features to accommodate the specific requirements of your online store and match your style.

With built-in customization tools like the block editor and the Site Editor, WordPress enables you to create significant modifications to your product pages without extensive technical knowledge. Plus, you can obtain specific design options as well as additional functionality through various extensions. For those who are a more skilled WordPress user, you can edit your website's pages with custom codes.

In this post, we'll look at the default homepage for your product and talk about why you might want to customize it. We'll then show three ways to modify the templates of your products.

What exactly is a page for a product?

When you install it on your WordPress website The plugin immediately creates a Shop page where it will list all of your products. When a user clicks an item from your catalogue it will take them to the appropriate product page. The format of this page will largely depend upon your design, however it will contain some essential details about the item.

It is possible to edit or add these details by clicking on the products tab of the menu bar on your WordPress dashboard, finding the item you want to edit, then selecting Edit Products. Alternatively, you can select "Add New" to make a brand new product.

product page in the Woo dashboard
adding a simple product

In this section, you are able to select the category of your item and add tags. These features enable customers to browse your catalog of products with greater ease.

When you're finished configuring your product, press the Update button. Here's what a default product webpage might look like from the front end:

product listing for a WordPress pennant

It is evident that this product page comes with everything you need to market your goods on the internet. Be aware that the design that you will see at the front end of your site will be the same for all items.

The reason you should personalize your product page

Then, why would modify the website for your products if it works just fine?

Perhaps there's no need any more.

If you prefer a minimalist layout and are only looking for the most essential elements to market your goods, you may not need to make any changes. It's not a requirement that you mustcustomize products' pages, and the standard options have been working just well for a lot of business owners.

However, the default product page design isn't always the best. There's for instance, no choice to incorporate other kinds of media such as video files or variation swatches.

This simplicity might work for some online stores. Others will require more options to increase sales.

In this regard, it is recommended to customize your product webpage if you'd like:

  • Offer more information on your product. If you provide customers with all the information they need, it's easier for them to make an informed purchase (and to purchase). It is possible to include a FAQ section, variations of swatches, 360-degree images, videos, etc.

Three different ways to modify the product page

Now, let's take a look at three ways you can customize your product web page!

1. Using the Site Editor

The great thing that is great about WordPress is that its native functions are extremely user-friendly. Because of its Site Editor it is not necessary to be a programmer in order to create stunning custom product pages in .

The Site Editor functions similarly as the block editor. While the former can be used to create pages as well as blog posts The Site Editor allows users to modify the elements of your website, including your header, footer, and the product page template.

It is important to note that you are able to use the Site Editor with a block theme. If you're using a traditional theme you'll need to refer to method three in this guide.

Also, the content for each individual product page can be changed only by going to the Products tab and open the product in the back-end editor (as previously mentioned). The next thing we'll create is to customize the components and style of your page.

To get started for a start, head to the Appearance Editor and click on templates.

Appearance --> Editor --> Templates screen

Scroll to the bottom of the page where you can select from the Single-Product template.

selecting the single product template

After that, you can click on the pencil icon to open the template in the editor.

editing the single product template

In the beginning, you'll notice that the template is greyed out.

default single product template

Click on the template area then you'll get a prompt to transform it into block. Hit the Transform into blocks button to continue.

classic template placeholder

Now you can edit your product page by using blocks.

editing the product page with blocks

In case you're not acquainted with WordPress blocks, or The Site Editor here's a few ways that you can tweak the page's layout:

Change the page layout

To alter the layout of your page, click on a larger block and then choose the block that is its parent.

selecting columns on the product page

The horizontal menu will include arrows allowing users to shift that portion of the page left or right.

option to move a block left or right

Additionally, you can shift blocks or groups of blocks both up and down.

moving description block up

Additionally, if you want to add a block, simply hover over the place where you'd like to insert it, and click on the plus icon.

adding a block to the product page

If you'd like to change the layout, incorporating blocks to columns or groups makes the most sense.

It is also possible to change the template layout by choosing it and then opening your block's settings.

setting layout options for the product page

When you select Layout You'll be able to select the choice of changing the reason for and location of the design. The design can be made into a "sticky" element -- meaning it will not disappear as users scroll through the page.

Once you're pleased with your modifications, hit your Save button at the top of your screen.

Change colors and typography

To modify colors in The Site Editor click the element you'd like to change and then open the block's settings on the left.

block settings screen

The components you are able to alter will vary based upon the block. But typically you can modify the background, text, and link color.

In default, you'll be able to choose from your theme's default colors.

options for block text, background, and links

If you click the box that says No color selected You'll be presented with a color picker.

color picker for blocks

In this section, you are able to drag your mouse over to choose a colour. The Site Editor will even inform you if you've picked a poor color contrast.

adding a custom color to a block

You can also input specific HEX, HSL, or RGB colors. This is great because it lets you ensure that the colors of your business are in line with.

On the Typography Tab, there is a way to have the option to alter the font size to small, medium or large.

To open more font settings Click on the three dots that are next to Typography.

font size options dropdown

There are a lot of choices in this section. Simply click on the ones you like and then add them to the Typography menu.

choosing more typography options

It is possible to deactivate these options if you decide that you do not need them.

Make new blocks

Do you want to include additional elements to the website's product pages? The Site Editor makes that feasible.

If, for instance, you're conducting a sale across the entire site, you could add a banner block to the top of your template.

adding a banner block
adding a search bar to the product page

It's a good idea to be familiar with various WordPress block and, to see the options you have.

Create different types of pages for products

As you've learned that there are a variety of ways to customize the product template of your page in the Site Editor. The changes you make will be reflected on the pages of your products.

In certain situations, you might want an exclusive template for a specific product type or category. You might, for example, require a unique product webpage for the new product that you're planning to launch. You might also want to develop a sale page for a certain segment of products during the Christmas season.

To make multiple templates to serve diverse purposes, head to Appearance - Editor - Templates. After that, you can click the plus symbol to add an additional template. Select Single item: Product.

template options

This lets you create a new product page template with only one option. Select your desired product from the menu to start the Site Editor.

assigning products to a template

In the default setting, you'll be prompted to select a pattern that is already in use. First, you'll want to choose the template you use for your overall product page.

choosing a pattern

Using a pre-existing pattern can help fast-track the design process. But you can always avoid this step if would rather start fresh.

When you go back to the Templates screen and hit the plus symbol for a second time to make a fresh template, there will be the option of selecting Category (product_cat).

adding a new template

This template can be used specifically designed for one specific area that includes clothes, accessories, or decor.

Select your desired category, then begin building your template. These steps are exactly the same as with the Single item: Product option.

2. Utilizing extensions

If you're using a block-based theme, the Site Editor enables you to customize your product templates in a variety of ways, without touching the code.

However, it does not give you the capability to expand the capabilities of your page. Fortunately, there's a lot of extensions to help you achieve this even if you're not a professional with the technical knowledge.

In this section we'll take a look at some instruments that allow you to change your website's appearance by adding new features. To make things easier to use, we've grouped these extensions into three use cases: for creating advanced products, enhancing product pages to increase sales.

Create advanced products

If your store's online offering customized products or more advanced variants, it might be worth a extension to facilitate selling these products. In this article, we'll look at the top choices.

Advanced Product Variation
advanced product variation extension

It allows you to make variables in your products, but the settings on these products can be a bit limited.

Furthermore, this extension lets you to customize your variation galleries, and even create tables that clearly display the options available.

Product Designer for
product designer for

Your customers will be able to upload pictures, clip art as well as templates and shapes to your products. And they'll even be able to add these items to their carts right from the design page. It also creates print-ready files that can aid in the production of custom items.

Composite Products
composite products with extras

For instance, a shop selling skates may permit customers to design their own skate by following four steps and then tailoring each step to meet their personal needs. The advanced sorting, filtering and conditional logic makes it easier for consumers to discover what they're searching for.

The great thing about Composite Products is that it comes with built-in support for product bundles. When customers make their own unique item, they'll be able draw from the available items from the catalog.

Pricing by Formula Calculator for
Product Price by Custom Formula extension

Certain custom-made products need more sources, for example, additional fabrics or wood. Without the right equipment, creating a site for these items could be a challenge in terms of logistics.

The usual method to market this type of product would be to get in touch with clients with a quotation. But this can drastically slow down the sales process. In fact, one of the main reasons that customers abandon their carts is because they are unable to estimate the total price of the purchase in advance.

Wholesale for


It is possible to create and manage different wholesale user roles as well as establish pricing on the basis of role. Additionally, it comes with an easy-to-use registration form creator, so you can create an application for wholesale.

Optimize product pages

These extensions can help improve your product pages.

360o Image for
mixer product

While comprehensive product specifications, static photos, as well as videos, can go a long way, offering a 360o image can help bring your products to life.

It also comes with the ability to navigate and has a full screen mode, so your customers can get an overview of your product.

One Page Checkout
landing page that says "enable seamless purchases"

Like the name suggests, this extension lets you design a unique product page which guides customers directly to make purchases. You can also add items from their carts and complete payment without ever needing to wait for a different site to load.

This is a great tool for sites with fewer products or landing pages specifically designed to be associated with marketing campaigns.

Tab Manager
Tab manager extension

However, if you give your clients many details they could be overwhelmed. This is why you may want to make use of tabs on products in order to present product information in order.

To increase sales of products

Now, here are some techniques that can help you increase your sales using both conventional and subtle marketing methods.

Sale Flash Pro
Sale Flash Pro extension

About 40% of internet buyers say that their user experience would be better if the retailers had wishlists. With a number that high, every online store should have added this functionality on their priority checklist.

Product Recommendations
recommended products featuring shoes

The program can also generate automated recommendations based on the shoppers most recently visited history. These reports will assist you in identifying your best recommendation methods.

Product Add-Ons
product add-on options
Product Bundles
product bundles with instruments

This tool enables you to combine simple and flexible products. It also lets you recommend additional products and provide bulk discounts. Plus, you're able to alter the look of the bundles and items.

3. Using custom code

Additionally, you can edit your website's product pages with a custom-code. This technique is especially helpful for those who are using a standard theme and therefore don't possess access to Site Editor.

Be aware that altering the themes files on your website is an extremely risky process. If you're not equipped with the know-how, you may end up damaging your site or causing slowdowns.

Then, once you're ready to go live with your new changes, make sure to make use of the WordPress kid theme. So, the customizations won't be lost with any updates to your parent theme.

Below are ways to alter your page's content by using a custom code.

Utilizing CSS that is custom

If you want to customize the appearance of your page using code, CSS is the best choice. You can alter elements like fonts, colors hyperlinks, colors, and much more.

There are several ways you can do this. We'll look.

In the Site Editor

For adding CSS to your product page using the Site Editor, click the Editor's Appearance and click on Styles - Other CSS.

adding CSS to the Site Editor

It is possible to place the code into the Additional CSS box.

In the case of example, if you want to modify the color of a description, you can do so by using the code that reads like:

h2.-loop-product__title, . div.product .product_title      color: #ffffff;     letter-spacing: 1px;     margin-bottom: 10px !important; 

It's as simple as replacing "ffffff" with your preferred color code.

Or, if you'd like to change the font size you can use this CSS snippet:

. div.product .product_title  font-size: 25px; 

Make sure you make sure to publish your changes.

It's true that these are just a few simple examples, but the opportunities are endless. If you're looking to learn more, make sure to check out the WordPress guide for more information on CSS.

In the Customizer

If your theme doesn't support full editing of your site, you'll need to include your CSS code to the Customizer. To add it you need to go to Appearance - Customize - Add Additional CSS.

Advanced product variation extension

CSS functions in the exact way here as it does within the Site Editor.

In your child theme's style.css file

The last location where you could add CSS to WordPress can be found in the theme's style.css file. You'll need to work with your child theme to make sure that the changes you've made don't get lost in the update.

Click on Appearance - Theme File Editor.

editing CSS in theme files

As a default, your style.css file should be chosen. If it's not, choose it from the left part of the screen, under the Theme Files menu.

After that, you'll be able to include any CSS at the bottom on the page. The only thing you need to do is update the CSS after you're done.

Using PHP

CSS is great at changing the design of WordPress, but it can't help you add functionality to your product pages.

To do that manually with codes, you'll have to utilize PHP. You can add PHP code to the children theme's functions.php file or with a plugin, such as Code Snippets.

code snippets plugin

Here are a few suggestions you can try if you're an experienced WordPress developer or user:

hooks (actions and filters)

Here's an example of a beneficial procedure:

/**  * Allow shortcodes in product excerpts  */ if (!function_exists('_template_single_excerpt'))     function _template_single_excerpt( $post )        global $post;        if ($post->post_excerpt) echo '' . do_shortcode(wpautop(wptexturize($post->post_excerpt))) . '';     
/**  * Display product attribute archive links   */ add_action( '_product_meta_end', 'wc_show_attribute_links' ); // if you'd like to show it on archive page, replace "_product_meta_end" with "_shop_loop_item_title" function wc_show_attribute_links()  global $post; $attribute_names = array( '', '' ); // Add attribute names here and remember to add the pa_ prefix to the attribute name foreach ( $attribute_names as $attribute_name )  $taxonomy = get_taxonomy( $attribute_name ); if ( $taxonomy && ! is_wp_error( $taxonomy ) )  $terms = the wp_get_post_terms function( $post->ID attribute_name, $post->ID ) the $terms_array is an array(); If ( ! empty( $terms ) ) $terms = foreach ( term $terms) ) the$archive_link = get_term_link( $term->slug attribute_name, $term->slug );$full_line = ''. $term->name . '';       array_push( $terms_array, $full_line );                  echo $taxonomy->labels->name . ': ' . implode( ', ' . $terms_array );                     
/**  * Reorder product data tabs  */ add_filter( '_product_tabs', 'woo_reorder_tabs', 98 ); function woo_reorder_tabs( $tabs )  $tabs['reviews']['priority'] = 5; // Reviews first $tabs['description']['priority'] = 10; // Description second $tabs['additional_information']['priority'] = 15; // Additional information third return $tabs; 

Also, you can add a custom tab:

/**  * Add a custom product data tab  */ add_filter( '_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs )  // Adds the new tab $tabs['test_tab'] = array( 'title' => __( 'New Product Tab', '' ), 'priority' => 50, 'callback' => 'woo_new_product_tab_content' ); return $tabs;  function woo_new_product_tab_content()  // The new tab content echo 'New Product Tab'; echo 'Here\'s your new product tab.'; 

To learn more about how to use these functions, check out the complete listing of hooks.

A global page template

When you're working with PHP code, another alternative is to create a global custom product page template completely from scratch. Keep in mind that this method will not work with block themes.

To begin, you'll need to name your new file template-custom-product.php and write an opening PHP comment at the top, stating the template's name:

In this scenario in this scenario, it might be beneficial to substitute "Example Template" by "Global Personalized Template for Product Pages" or something like that.

The template is modeled following the default page for products. You can then alter it however you like using web hooks.

Boost sales with a custom product webpage

A customized product page will help you effectively showcase the products you offer. This also lets you offer more options to customers and create a unique user experience that is engaging for your customers. As we have seen, you can use a variety of methods to edit this page.

If you have a block theme, you may use the Site Editor to alter the look of your global template. For more features and functionality, install an extension. If you're a seasoned WordPress users, then you might prefer to utilize CSS or PHP however, this could be an extremely delicate procedure.