Jul 10, 2024

In order to effectively display your products on the internet, you'll require product pages that look attractive and simple to navigate. The default template offers all the basics, however you could be searching for extra features that meet your unique requirements for your online store and match your personal style.

Through built-in customizing tools such as the block editor or the Site Editor, WordPress enables you to create significant modifications to your product pages without extensive technical knowledge. Additionally, you'll be able to obtain specific design options as well as additional functionality through various extensions. Or, if you're a more experienced WordPress use, you may alter your pages' content using the custom codes.

In this article, we'll look at the default homepage for your product and talk about why you may want to alter it. In the next post, we'll demonstrate three options to start customizing product page templates.

What is a Product Page?

When you install it on your WordPress website, the plugin instantly creates a Shop page where you'll be able to list your items. When a user clicks the item you have listed and they're taken to the appropriate product page. The format of this page will be largely based on the theme you've chosen, however it will contain some essential information about the product.

Edit or add the information you want to edit by going to your Product tab of the top menu on your WordPress dashboard, finding the item you want to edit, then selecting Edit Product. Alternatively, you can click on "Add New" to make a brand new product.

product page in the Woo dashboard
adding a simple product

In this section, you can also choose a category for your product as well as add tags. These options allow customers to explore your catalogue of items with greater ease.

When you're finished configuring a product, hit the update button. This is how a default product web page could look like on 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 online. Note that the template displayed on the front end of your website will be identical for every product.

The reason you should personalize your page for sale

So, why should modify the website for your products if it works just fine?

Maybe there's no need in the first place.

If you prefer a minimalist style and want only the most the most essential elements to market your products, you might not have to make any changes. There's certainly nothing that says you have tocustomize product pages and the basic options have served fine for thousands of successful store owners.

The template for the default page could be restrictive. There's for instance, no possibility to include other kinds of media, like videos or variations Swatches.

The simplicity of this approach could work well for a few online shops. Others will require more features to help increase sales.

In this regard, you can customize your products page if you'd like to:

  • Provide more information about the product you offer. When you give customers all the information they need, it may be easier for them to make a purchase (and a purchase). It is possible to include a FAQ tab, variation pictures, 360 swatches videos, etc.

Three ways to customize the product page

We'll now examine three ways that you can personalize your product web page!

1. By using the Site Editor

The best thing about WordPress is that its built-in features are very beginner-friendly. Thanks to the Site Editor it is not necessary to learn how to code to design beautiful custom product pages .

The Site Editor functions similarly as that of the blocks editor. However, while it is utilized for page and blog posts it is a Site Editor that allows you to customize all elements, such as your header, footer, and the product page template.

Note that you can only use the Site Editor with an unblocking theme. If you're still using a standard theme you'll have to reference step three of this article.

Also, the content for each individual product page can only be modified by accessing the Products tab, and then open the product using the editor in the backend (as previously mentioned). What we're about to modify is the components and style of your page.

To begin To begin, visit "Appearance" - Editor and then click Templates.

Appearance --> Editor --> Templates screen

Scroll down to the section where you can select from the Single Product template.

selecting the single product template

Then, click on the pencil icon in order to launch the template editor.

editing the single product template

At first, you'll see that the template has been colored gray.

default single product template

Click on the template area and you'll be asked to turn this template in blocks. Press the Transform into blocks button to proceed.

classic template placeholder

You can now make changes to your website with blocks.

editing the product page with blocks

In case you're not familiar with WordPress blocks or the Site Editor, here are a few useful ways you can tweak this page:

Change the page layout

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

selecting columns on the product page

Your horizontal menus should display arrows that enable users to shift that portion of the page to either left or right.

option to move a block left or right

Additionally, you can shift blocks or groups of blocks upwards and downwards.

moving description block up

In addition, if you wish to include a block just hover over the area that you'd like it to be it, and click on the plus symbol.

adding a block to the product page

If you want to modify the layout, adding blocks for columns or groups makes sense.

You can also make global changes to the template layout by selecting the template and opening your block's configurations.

setting layout options for the product page

In Layout, you'll have the choice of changing the purpose and positioning of the design. You can even transform it into a "sticky" element -- meaning it will not disappear whenever users scroll down the page.

If you're satisfied with the changes, click your Save button located at the at the top of your screen.

Colors can be changed and typography changes.

For changing colors using the Editor for Sites, choose the component you want to edit and open the block's settings on the right.

block settings screen

The elements you can change will depend on the block. However, typically you can modify the background, text, and link colors.

By default, you can pick from the default theme colors.

options for block text, background, and links

If you click the section that reads "No color" You'll be presented with the color selector.

color picker for blocks

You can move the mouse to pick the shade. The Site Editor can inform you if you've chosen a color with poor contrast.

adding a custom color to a block

Additionally, you can input HEX, HSL, or RGB colors. This is ideal as it enables you to make sure that your company colors are exactly the same.

On the Tab for Typography tab, you can change the size of text to small, medium and large.

To open more font settings, click on the three dots to the right of Typography..

font size options dropdown

There are many options in this section. Simply click on the ones you like and then add them to the Typography menu.

choosing more typography options

You are able to remove these settings if you decide that you do not need them.

Create new blocks

Do you want to include additional elements to the page of your product? The Site Editor makes that possible.

In the case of running a site-wide sale it's possible to add a banner block to the at the top of your design.

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

It's a good idea to get familiar with the blocks and blocks that are available WordPress block and to see the options you have.

Create multiple types of pages for products

As you've learned, there are several ways to customize the product template of your page within the Editor for Sites. Any changes you make will show up on the pages of your products.

In certain situations it's possible to use templates that are only suitable to promote a particular type of product or even a specific category. For instance, you might require a unique product page for a new item you're launching. Perhaps, you'd like to develop a sale page specifically for a specific item category during the holiday season.

For multiple templates that can be used for different purposes, go to Appearance - Editor – Templates. Click on the plus icon to create an additional template. Select Single item: Product.

template options

This allows you to design the template of a brand new page for your products, but for one item. Select the item you wish to use from the drop-down menu and launch the Site Editor.

assigning products to a template

By default it will prompt you to use a pre-existing pattern. First, you'll want to choose the template you use for your overall product page.

choosing a pattern

Utilizing an existing pattern could assist in the speedy design process. But you can always bypass this process if you prefer to start from scratch.

If you go back to the Templates screen, and click the plus button again to add a new template, you'll see an option for you to choose the category (product_cat).

adding a new template

This template can be used for a specific category such as clothes, accessories, or even decor.

Choose your preferred category and start creating your template. The steps are similar to the Single item: Product option.

2. Utilizing extensions

Like you've noticed, when you're using a block template, the Site Editor enables you to customize your product template for your page in various ways, without touching one line of code.

But it's not giving you the ability to extend the capabilities of your page. Fortunately, there are plenty of extensions available to accomplish this, regardless of whether you're not a professional with any technical expertise.

In this section we'll take a look at some tools that enable you to alter your page's content to include new features. To make things easier We've put these extensions into three use cases: for creating advanced products, optimizing product pages, and increasing the sales.

Create advanced products

If your store's online offering custom-designed products or sophisticated product variations, you might want extensions to ease selling of these products. In this article, we'll look at a few top-notch options.

Advanced Product Variation
advanced product variation extension

enables you to create different products in the default way, but the settings are somewhat limited.

In addition, the extension permits users to modify their variation galleries as well as create tables to clearly display the options available.

Product Designer for
product designer for

Your customers will be able to add clips, images, shapes, and templates to your items. In addition, they'll be able to add these items to their carts directly from the design page. Additionally, it creates print-ready images that can aid in the creation of customized products.

Composite Products
composite products with extras

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

The great thing about Composite Products is the built-in support for product bundles. When customers make their unique product, they'll have the ability draw from the available items within your catalog.

Pricing by Formula Calculator for
Product Price by Custom Formula extension

Some custom products require more materials, such as additional fabric or wood. If you don't have the appropriate tools, creating a product page for these items can be logistically challenging.

The most common method of selling such a product would be to contact customers with a quote. However, this could drastically reduce the speed of sales. One of the main reasons that customers abandon their carts is that they can't determine the cost total of the purchase in advance.

Wholesale For
Wholesale for  extension

It is possible to create and manage various wholesale user roles, and create pricing based on role. Additionally, it comes with a drag-and-drop registration form builder, so you can create an online wholesale application.

Optimize product pages

Here are some extensions that can help improve your product pages.

360o Image for
mixer product

Although detailed product specifications images, static pictures, and videos can help providing a 360o view helps bring your items to life.

It also comes with navigation controls and offers full display mode so that your customers can get a good look at your product.

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

As the name suggests, this extension lets you design a unique product page which guides customers directly to make purchases. They can add or remove products from their cart and make a payment with no waiting for a new website to be loaded.

This tool is ideal for sites with fewer products or landing pages that are targeted with marketing campaigns.

Tab Manager
Tab manager extension

If you provide your customers with too much information, you can overwhelm them. Therefore, you might want to utilize product tabs for presenting information about the product in a more organized way.

To increase sales of products

Now, here are some tools that will help you boost sales by using conventional and subtle marketing methods.

Sale Flash Pro
Sale Flash Pro extension

A little over 40% of online shoppers believe that their shopping experience will be improved if the retailers had wishlists. With a number that high all online stores could have put this option in their top priorities.

Product Recommendations
recommended products featuring shoes

It can even generate automatic recommendations based upon the customers' recently viewed history. These reports will assist you in identifying your most efficient recommendation methods.

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

This program lets you combine simple and flexible products. You can even recommend optional products or offer bulk discounts. Additionally, you can alter the look of your bundles as well as bundled things.

3. Using custom code

You can also edit your website's product pages by using a custom code. This method is particularly useful for those who are using a standard theme, and don't get access to the Editor for Sites.

It is important to note that directly altering the theme files of your site is not a simple task. If you're not equipped skills to do it, you may cause damage to your website or causing slowdowns.

Then, once you're ready to live your modifications Make sure you make use of your WordPress child theme. So, the customizations will not be affected by any changes to the parent theme.

Here are a few ways to alter your product page using custom code.

Utilizing CSS that is custom

If you want to customize the style of your product website using code, CSS is the best choice. You can alter things like colors, fonts, links, and more.

There are many options to do this. Let's take a take a look.

The Site Editor

For adding CSS to your product page using the Site Editor, visit Appearance - Editor Styles - Additional CSS.

adding CSS to the Site Editor

You can place your code in the Additional CSS box.

For instance, if you want to modify the color of a description, you can do so by using an snippet of code like this:

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

Simply replace "ffffff" by your favorite color code.

If you'd like to change the font's size, you can use this CSS code:

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

Be sure to Publish your changes.

Naturally, these are just a few basic examples, however there are many possibilities. If you're interested in knowing more, make sure to go through the WordPress guide for more information on CSS.

The Customizer

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

Advanced product variation extension

CSS will function the same method here as it works within the Editor for Sites.

In your themes for children's style.css file

The last place you are able to make CSS to WordPress is in your theme's style.css file. Again, you'll want to work with your child theme to make sure that the changes you've made won't be lost during updates.

Click on Appearance - Theme File Editor.

editing CSS in theme files

By default, your style.css file should be chosen. If it isn't, simply click it on the right hand side of the screen under the Theme Files menu.

You can then include any CSS at the bottom in the document. It's just a matter of updating the file when you're done.

Using PHP

CSS is great at changing the appearance of WordPress however it doesn't aid in enhancing the functionality of your product pages.

To do that manually with code, you'll need use PHP. You can add PHP code into your children theme's functions.php file or using a plugin like Code Snippets.

code snippets plugin

There are several options you might want to try if you're an experienced WordPress user or developer:

Hooks (actions as well as filters)

This is an instance of practical step:

/**  * 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 = $terms = wp_get_post_terms( $post->ID and $attribute_name ); $terms_array = array(); if ( ! empty( $terms ) ) is_wp_error( $terms ) foreach ( term $terms) ) $archive_link = Get_Term_Link( $term->slug, $attribute_name );$full_line = to"' . $archive_link . '">'. $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; 

Or, you could 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 find out more details about using these features, take a look at the complete list of hooks.

A global page template

If you're using PHP code for , another option is to create a global custom template for your product completely from scratch. Be aware this won't work for 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 case in this scenario, it might be beneficial to substitute "Example Template" with "Global Customer-specific Template for Product Pages" or something similar.

The template will be modelled following the default page for products. You can then modify it as you wish by using web hooks.

Get more sales through a custom product page

Customizing your product page can help you effectively showcase your products. It also enables you to provide more choices to your customers and provide a distinctive customer experience that draws in your target audience. We've seen that there are a myriad of ways to edit this page.

If you're using blocks in your theme, you can utilize the Site Editor to alter the appearance of the global template. To enhance the functionality of your site and functionality, install an extension. If you're an experienced WordPress user, you could decide to make use of CSS or PHP however this may be a delicate process.