Jul 10, 2024

For your product to be effectively displayed online, you'll require pages that are appealing and easy to navigate. The default template offers all the basics, however you might be looking for more features that can meet the unique needs of your store's online presence and to match your personal style.

Utilizing built-in tools for customization, such as the block editor or Site Editor, WordPress enables you to modify your product pages without extensive development expertise. Additionally, you'll be able to obtain specific design options as well as additional functionality through various extensions. If you're a more experienced WordPress users, then you are able to edit your website's pages with custom code.

In this blog we'll take a look at the default homepage for your product and discuss the reasons it's possible to modify the page. In the next post, we'll demonstrate three options 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 instantly creates an online shop page on which you can list all your items. If a visitor clicks on an item from your catalogue and they're taken to the appropriate product page. The layout of this webpage will depend upon your design, however it'll contain vital details about the item.

You can add or edit the information you want to edit by going to your Product tab of the top menu on your WordPress dashboard, locating your item, and selecting Edit Products. Alternatively, you can select "Add New" to create a new product.

product page in the Woo dashboard
adding a simple product

This page is where you can also choose the category of your item and then add tags. These features enable customers to explore your catalogue of items at a greater ease.

After you've finished setting up a product, click the Update button. This is how a default product webpage might look like from the front-end:

product listing for a WordPress pennant

As you can see, this product page comes with all the necessary information to sell your goods on the internet. Be aware that the design displayed on the front end of your site will be identical for every product.

Why you should customize your page for sale

Then, why would modify the website for your products when it's working fine?

Maybe you don't need to any more.

If you like a simple style and want only the most important features for selling your items, you may not require any adjustments. There's certainly nothing that says you need tocustomize your product's pages. The basic options have served well for a lot of store owners.

However, the standard design of the product pages isn't always the best. There's for instance, no option to add other types of media, like videos, or variations of colors.

The simplicity of this approach could work well for a few online stores. But others will want additional tools to boost sales.

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

  • Give more details about the product you offer. If you provide customers with all of the relevant information it's simpler for them to come to a decision (and make a purchase). You can add a product FAQ section, variations pictures, 360 swatches videos, and so on.

Three options to personalize the pages of products

Let's take a take a look at three ways you can personalize your product website!

1. Utilizing the Site Editor

The best thing that is great about WordPress is that its native features are very beginner-friendly. With the Site Editor, you don't need to know how to code in order to create amazing custom pages for your products .

The Site Editor works in a very similar way similar to that of the Block Editor. While the former can be used to create pages as well as blog posts it is a Site Editor that allows you to customize all elements, such as your footer, header, and the product page template.

It is important to note that you are able to use the Site Editor with an unblocking theme. If you're using a standard theme it's best to use the third method in this tutorial.

Also, the content for every page on your product can be altered by simply clicking on the Products tab, and then open the product using the editor in the backend (as as previously shown). The next thing we'll create is to customize the components and style of your product page.

For a start To begin, visit Appearance - Editor and select the Templates tab..

Appearance --> Editor --> Templates screen

Scroll down to the section and then select from the Single-Product template.

selecting the single product template

Then, click on the pencil icon to start the template editor.

editing the single product template

In the beginning, you'll notice that the template has been colored gray.

default single product template

Click on the template area then you'll get a prompt to convert the template into blocks. Press the transform into blocks button to proceed.

classic template placeholder

Then you are able to edit your product page using blocks.

editing the product page with blocks

If you're unfamiliar with WordPress blocks, or it's Site Editor we've got a few ways that you can tweak the page's layout:

Change the page layout

To adjust the page layout you need to click on a larger block and then choose the parent block.

selecting columns on the product page

The horizontal menu will include arrows allowing you to move that part of the page left or to the 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 insert a block, just hover over the area in which you'd like to place it and then click the plus icon.

adding a block to the product page

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

You can also make global changes to the template layout by clicking it, and then navigating to your block's settings.

setting layout options for the product page

When you select Layout You'll be able to select the option to change the reason for and location of the design. It can also be transformed into an "sticky" element - meaning it will not disappear as users scroll through the page.

If you're satisfied with your modifications, hit the Save button at the upper right of the screen.

Colors can be changed and typography changes.

For changing colors using the Editor for Sites, choose the item you wish to modify and access the block's settings on the left.

block settings screen

The elements you can change are contingent on the block, but usually, you have the option of changing background, text, and link colors.

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

options for block text, background, and links

If you select the box that says "No color" and you'll see a color picker.

color picker for blocks

You can move your mouse around to select the color. The Site Editor will notify you when you've selected a bad color contrast.

adding a custom color to a block

It is also possible to input HEX, HSL, or RGB colors. This is very useful since it allows you to match your exact company colors.

Within the Tab for Typography section, click on the Typography tab. You have the option to modify the text's size to small, medium or large.

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

font size options dropdown

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

choosing more typography options

You are able to remove the settings you want to disable if that they aren't necessary.

Add new blocks

Are you looking to include elements on the product page? The Site Editor makes it possible.

For instance, when you're organizing a massive sale on your site, you could add a banner block to the top of your design.

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 so that you know what possibilities you can select from.

Make multiple kinds of product pages

As you've seen that there are a variety of ways to customize the product page template in the Editor for Sites. The changes you make will show up on the pages of your products.

However, in some cases it's possible to use a template that's only used for a specific product type or even a specific category. You might, for example, need a completely unique webpage for the new product you're launching. You might also want to develop a sale page specifically for a specific item category during the holiday season.

To make multiple templates to serve diverse purposes, head to Appearance - Editor – Templates. Click on the plus symbol to add a new template and choose one item to add: Product.

template options

This lets you create the template of a brand new page for your products however, only for one product. Select the item you wish to use from the menu to open the Site Editor.

assigning products to a template

By default the system will ask you to select a pattern that is already in use. First, you'll want to choose your general product page template.

choosing a pattern

Utilizing an existing pattern could help fast-track the design process. However, you are able to bypass this process if you would rather start fresh.

When you go back to the Templates screen and hit the plus icon once more to create a new template, you'll be presented with 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 accessories, clothing, or even decor.

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

2. Extensions can be used to enhance your experience.

As you've seen, when you're using a block-based theme, the Site Editor enables you to customize your product page template in different ways, all without writing the code.

However, it does not give users the possibility of expanding the capabilities of your page. Fortunately, there are plenty of extensions that help you do this, even if you're not a professional with the technical knowledge.

In this section we'll take a look at some tools that enable you to modify your product page to include additional options. To make things easier, we've organized the extensions into three usage examples: creating sophisticated solutions, enhancing the pages of your products, and increasing sales.

Develop products that are innovative

If your store's online offering bespoke products or advanced product variations, you might want extensions to ease selling these products. Below, we'll explore some top options.

Advanced Product Variation
advanced product variation extension

You can create variables in your products, but the settings for these items can be a bit limited.

Furthermore, this extension lets users to modify their variation galleries and create tables to clearly display the options available.

Product Designer for
product designer for

Your customers will be able to add pictures, clip art as well as templates and shapes to your items. In addition, they'll be able to add these items to their carts directly through the design pages. It also creates print-ready files which will facilitate the manufacturing of personalized products.

Composite Products
composite products with extras

A shop that sells skates might allow patrons to design their own skate by following four steps and then tailoring everything to their specific preferences. The advanced sorting, filtering and conditional logic make it simple for customers to locate what they're looking for.

The best thing about Composite Products is the integrated support for bundles of products. When customers make their own product, they'll have the ability to pull from all the products in your catalog.

Price Calculator by Formula Calculator for
Product Price by Custom Formula extension

Some custom products require more sources, for example, additional fabrics or wood. With the wrong equipment, creating a site for these items could be logistically challenging.

The usual method to market the product of this kind is to contact clients with a quotation. However, this could drastically reduce the speed of sales. One of the main reasons that shoppers abandon carts is the inability to estimate the total price of the order upfront.

Wholesale for
Wholesale for  extension

You can create and manage various wholesale user roles, and establish pricing on the basis of role. Additionally, it comes with an easy-to-use registration form creator, 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 as well as static images as well as videos, can go a long way, offering a 360o image can help bring your products to life.

It also comes with navigation controls and offers full display mode so that your customers can get an excellent view of the product.

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

As the name suggests it allows you to build a custom website that directs shoppers straight to buy. They can add or remove items from their carts and complete payment without ever waiting for a new site to load.

This is a great tool for websites with less products or landing pages that are targeted with advertising campaigns.

Tab Manager
Tab manager extension

If you offer your clients many details, you can overwhelm them. So, it is possible use tabs for products to display product details in a a more organized way.

Product sales increase

Below are instruments that can assist you to boost sales by using traditional and more sophisticated marketing techniques.

Sale Flash Pro
Sale Flash Pro extension

Around 40% of internet shoppers claim that their customer experience would be better if the retailers had wishlists. With a number that high, every online store could have put this option on their priority checklist.

Product Recommendations
recommended products featuring shoes

It can even generate automatic recommendations based upon the customers' recently viewed history. The reports are useful to help you identify your most efficient recommendation methods.

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

The tool lets you bundle both simple and variable items. You can even recommend optional products or offer bulk discounts. You can also modify the design of the bundles and things.

3. Using custom code

You can also edit your website's product pages with a custom-code. This technique is especially helpful when you're using a traditional theme and therefore don't get access to the Editor for Sites.

Be aware that altering the theme files of your site is not a simple task. If you don't have the skills to do it, you may be causing damage to your website or causing slowdowns.

When you're ready to go live with your new changes Make sure you utilize your WordPress child theme. So, the customizations won't be lost with any updates to your parent theme.

Now, here are some methods to modify your product page with a customized code.

Utilizing custom CSS

If you want to customize the look of your site using code CSS is your best option. It enables you to modify items like fonts, colors hyperlinks, colors, and much more.

There are many methods to accomplish this. Let's look at them.

In the Site Editor

To include CSS on your product page using the Site Editor, go to Appearance - Editor Styles - Other CSS.

adding CSS to the Site Editor

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

If, for instance, you wish to alter the color of a product name, you can use the code such as 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 alter the size of your font it is possible to do so using this CSS code:

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

Make sure you make sure to publish your modifications.

Of course, these are only a handful of simple examples, but the opportunities are endless. If you're looking to learn more, you can check out the WordPress documentation about CSS.

In the Customizer

If the theme you're using doesn't allow complete site editing, then you'll have to add your CSS code in the Customizer. For this visit Appearance - Customize - Add Additional CSS.

Advanced product variation extension

CSS will function the same manner here, as it did when you use the Site Editor.

In the child theme's style.css file

The last location where you can include CSS to WordPress is in your theme's style.css file. Again, you'll want to coordinate with the child theme in order to ensure that your modifications won't be lost during changes.

Click on Appearance > Theme File Editor.

editing CSS in theme files

In default, the style.css file should be selected. If it's not, select it on the right part of the screen, under the Theme Files menu.

Then, you can include any CSS in the last line of the file. The only thing you need to do is update the file when you're done.

Using PHP

CSS can be used to alter the appearance of WordPress, but it can't assist you in adding functionality to the pages of your products.

If you want to do this manually using code, you'll need to utilize PHP. The easiest way to do this is by adding PHP code to your child theme's functions.php file or using a plugin like Code Snippets.

code snippets plugin

Below are some suggestions you can test if you're a seasoned WordPress developer or user:

Hooks (actions as well as filters)

Below is an illustration of useful action:

/**  * 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 and $attribute_name ); $terms_array = array() array(); If ( ! empty( $terms ) ) $terms = foreach ( term $terms) ) the$archive_link = get_term_link( $term->slug and $attribute_name )$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 include a tab that you have created:

/**  * 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 this complete listing of hooks.

Template for a global web page

When you're working with PHP code, another alternative is to make a customized global product page template from scratch. Keep in mind that this method 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 scenario in this scenario, it might be beneficial to replace "Example Template" with "Global Personalized Product Page Template" or something like that.

This template will be modeled after the default product page. After that, you are able to alter it however you like using web hooks.

Increase sales by creating a customized product webpage

The design of your page for products can help you effectively showcase your offerings. 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, there are a myriad of ways to modify this page.

If you have an unblocking theme, you can utilize the Site Editor tool to change the design of the global template. To add more functionality it is possible to install extensions. If you're an experienced WordPress use, you could decide to make use of CSS or PHP however, this could be an extremely delicate procedure.