(Untitled)

Jul 10, 2024

In order to effectively display your products online, you'll need product pages that are appealing and user-friendly. The default template offers the essentials, but you may be seeking additional features to accommodate your unique requirements for your store online and complement your personal style.

Through built-in customizing tools such as the block editor and site Editor, WordPress enables you to make significant changes to your pages for products with no technical knowledge. In addition, you'll get specific design features and added functionality with different extensions. For those who are an experienced WordPress use, you may alter your pages' content using customized code.

In this blog we'll take a look at the default homepage for your product and explain why it's possible to modify it. Then, we'll show you three options to modify the templates of your products.

What exactly is a page for a product?

Once you have installed it on your WordPress site it instantly generates a Shop page where you'll be able to list the products you sell. If someone clicks an item from your catalogue, they'll be taken to the product's page. The design of the page will largely depend on the theme you've chosen, however it will contain some essential information regarding the product.

It is possible to edit or add these details by clicking on your Product tab in your WordPress dashboard, locating your item, and selecting Edit Products. You can also select "Add New" to make a brand new product.

product page in the Woo dashboard
adding a simple product

This page is where you can also choose an appropriate category for your product as well as add tags. These features enable customers to browse your catalog of products with greater ease.

After you've finished setting up a product, hit the update button. Here's what 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 the essentials for selling your products online. It is important to note that the layout that you will see at the front end of your page will be the same for all products.

The reason you should personalize your page for sale

Why should you customize the product page if it works just fine?

Maybe there's no need any more.

If you're looking for a minimal design and only want the most essential elements to market your items, you may not have to make any modifications. It's not a requirement that you need tocustomize product pages and the basic options have served well for a lot of store owners.

The standard design of the product pages could be restrictive. For example, there's no choice to incorporate other kinds of media such as video files or variation colors.

It's a simple approach that could be useful for some online shops. However, others may require additional options to increase sales.

With this in mind, you should customize your product webpage if you'd like:

  • Provide more information about your product. If you provide customers with all the necessary information, it will be much simpler for them to come to an informed choice (and make a purchase). You can add a product FAQ tab, variation of swatches, 360-degree images, videos, etc.

Three ways to customize the page of your product

We'll now take a look at three ways you can personalize your product page!

1. By using the Site Editor

The great thing that is great about WordPress is that its built-in tools are great for beginners. Thanks to the Site Editor it is not necessary to know how to code in order to create beautiful custom product pages .

The Site Editor works exactly the same way similar to it's block editor. However, while it is utilized for page and blog posts, the Site Editor enables you to customize the elements of your website, including your header, footer, as well as the template for your product page.

You can only utilize the Site Editor only with the block theme. If you're still using a standard theme you'll have to reference the third method in this tutorial.

Also, the content for every product page may be altered by simply accessing the Products tab and accessing the page within the back-end editor (as shown earlier). The next thing we'll modify is the components and style of your product page.

For a start To begin, visit Appearance - Editor and click on templates.

Appearance --> Editor --> Templates screen

Scroll to the bottom of the page and then select from the single product template.

selecting the single product template

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

editing the single product template

At first, you'll see that the template's greyed out.

default single product template

Select the template then you'll get a prompt to transform the template into blocks. Click the Transform into blocks button to continue.

classic template placeholder

Now you can edit your product page using blocks.

editing the product page with blocks

In case you're not acquainted with WordPress blocks or it's Site Editor we've got a few useful ways you can tweak this page:

Change the page layout

To adjust the page layout, click on a larger block and select the block that is its parent.

selecting columns on the product page

Your horizontal menus should show arrows that allow you to move that part of the page to either left or right.

option to move a block left or right

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

moving description block up

In addition, if you wish to insert a block, simply hover over the place where you'd like to insert the block, then click the plus icon.

adding a block to the product page

If you're looking to alter the layout, incorporating blocks to columns or groups is the best sense.

It is also possible to make global changes to the template layout by clicking it and then opening your block settings.

setting layout options for the product page

In Layout, you'll have an option of altering the justification and position of the design. You can even transform it into a "sticky" element -- which means it won't disappear when visitors scroll down the page.

When you're happy with the changes, click then the Save button at the upper right of the screen.

Colors can be changed and typography changes.

To change colors within the Editor for Sites, choose the item you wish to edit and open the block's settings on the right.

block settings screen

The elements you can change will vary based upon the block. But usually, you have the option of changing text, background and link color.

By default, you can choose from your theme's default color scheme.

options for block text, background, and links

If you select the area that says "No color", you'll get an option to select colors.

color picker for blocks

Here, you can drag your mouse around to select a color. The Site Editor will let you know 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 allows you to make sure that your company colors are exactly the same.

In the Typography section, click on the Typography tab. You are able to change the size of text to medium, small and large.

To access more font settings to change font settings, simply click the three dots that are next to Typography..

font size options dropdown

There are many options here. Just click to select them and add them to your Typeography menu.

choosing more typography options

You can always deselect these settings if you decide that you do not need them.

Add new blocks

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

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

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

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

Make multiple kinds of product pages

As you've learned, there are several ways to modify the page template within the Site Editor. The changes you make are reflected across every page of your products.

In certain situations, you might want a template that's only used for a specific product type or even a specific category. In this case, for instance, you may want a totally unique product webpage for the new product that you're planning to launch. Perhaps, you'd like to create a sale site for a particular product category around the holidays.

To make multiple templates to serve diverse purposes, head to Appearance - Editor – Templates. Then, click on the plus symbol to add the template you want to create and select Single item: Product.

template options

This lets you create a new product page template however, only for one product. Choose the product you want to create from the drop-down menu and open 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 general template for your product page.

choosing a pattern

Utilizing a pattern that is already in use can help fast-track the design process. But you can always avoid this step if want to begin from scratch.

If you go back to the Templates screen, and click the plus icon for a second time to make a fresh template, there will be an option to select Category (product_cat).

adding a new template

The template is specifically designed for one specific area, like clothes, accessories or even decor.

Select your desired category, then start building your template. The process is identical to those for the Single item: Product option.

2. Utilizing extensions

Like you've noticed, when you're using a block-based theme Site Editor allows you to customize your product templates in a variety of ways, without touching a line of code.

But it's not giving users the possibility of expanding the capabilities of your page. Fortunately, there's a lot of extensions to help you achieve this even if you're just starting out with no technical skills.

In this part we'll take a look at some tools that enable you to change your website's appearance by adding the latest options. In order to make it easier for you to use, we've grouped the extension into three different use cases: for creating advanced products, enhancing product pages, and increasing the number of sales.

Design and create advanced products

If your store's online offering bespoke products or advanced product variations, you might want an extension that will facilitate selling these products. Here, we'll discuss some top options.

Advanced Product Variation
advanced product variation extension

enables you to create variable products by default however the options are a bit 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 include pictures, clip art forms, templates, and shapes to your products. And they'll even be able to add them into their shopping carts on the design page. The software also produces print-ready documents, which can help facilitate the manufacturing of personalized goods.

Composite Products
composite products with extras

For instance, a skate shop may allow customers to design their own skate in four steps, customizing everything to their specific preferences. Filtering, sorting, and conditional logic make it easy for shoppers to find what they're looking for.

The great thing about Composite Products is that it has built-in support for bundles of product. This means that when customers design their own unique product, they'll have the ability to pull from all the products in the catalog.

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

Customized products may require additional materials, such as additional fabric or wood. With the wrong tools, creating a product site for these items could be logistically challenging.

The most common method of selling such a product is to contact clients with a quotation. But this can drastically delay the sale process. One of the most common reasons why shoppers abandon carts is because they are unable to determine the cost total of the order upfront.

Wholesale for
Wholesale for  extension

You can create and manage multiple wholesale user roles and establish pricing on the basis of role. Additionally, it comes with a drag-and-drop registration form builder, so you can create an application for wholesale.

Optimize product pages

Here are a few extensions that will help you improve the quality of your pages.

360o Image for
mixer product

While comprehensive product specifications images, static pictures, and videos can be helpful, offering a 360o image helps bring your items to life.

Additionally, it comes with the ability to navigate and has a full screen modes, which means that your customers can get an overview of the product.

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

As the name suggests, this extension lets you create a customized product page which guides customers directly to make purchases. Customers can easily add or delete items from their carts and make a payment with no needing to wait for a different page to load.

This tool is ideal for sites with fewer products or landing pages specifically designed to be associated with advertising campaigns.

Tab Manager
Tab manager extension

If you provide your customers with too much information it can be overwhelming. This is why you may want use tabs for products to present product information in an organized manner.

To increase sales of products

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

Sale Flash Pro
Sale Flash Pro extension
Wishlists

About 40 percent of online shoppers believe that their shopping experience will be improved if the retailers had wishlists. Given the number of people who say this, every online store should have added this functionality as a top priority on their checklist.

Product Recommendations
recommended products featuring shoes

The program can also generate automated suggestions based on shoppers' recently viewed history. The reports are useful to assist you in identifying 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 products. You may also suggest optional products or offer bulk discounts. Additionally, you can modify the design of your bundles and bundled items.

3. Using custom code

Additionally, you can edit your website's product pages using custom code. This method is particularly useful when you're using a traditional theme and therefore don't have access to the Site Editor.

It is important to note that directly altering your website's theme files is a delicate process. If you're not equipped skills to do it, you may cause damage to your website or causing slowdowns.

Once you're prepared to live your modifications ensure that you make use of your WordPress kid theme. This way, your customizations will not be affected by the latest updates to the parent theme.

Below are ways you can modify your page's content by using a custom codes.

Using custom CSS

If you're looking to alter the style of your product site using code CSS is the ideal choice. It enables you to modify things like colors, fonts, links, and more.

There are many options to do this. We'll look.

The Site Editor

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

adding CSS to the Site Editor

The code can be placed into the Additional CSS box.

In the case of example, if you wish to alter the hue of a name, you can use an snippet of code that reads like:

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.

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

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

Just make sure to make sure to publish the changes.

Of course, these are just a few basic examples, however the possibilities are limitless. If you're interested in learning more, make sure to check out the WordPress guide about CSS.

In the Customizer

If your theme does not support full editing of your site, you'll have to insert your CSS code to the Customizer. To do this you need to go to Appearance - Customize Other CSS.

Advanced product variation extension

CSS functions in the exact manner here, as it did in the Site Editor.

Within your themes for children's style.css file

The final place where you could include CSS to WordPress is in your theme's style.css file. You'll need to coordinate with the child theme in order to ensure that your modifications won't be lost during updates.

Go to Appearance - Theme Editor.

editing CSS in theme files

As a default, your style.css file should be chosen. If it's not, click it on the right edge of the screen in the Theme Files menu.

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

Using PHP

CSS is great at changing the design of WordPress, but it can't assist you in adding functionality to the pages of your products.

To do that manually with code, you'll need to use PHP. The easiest way to do this is by adding PHP code to your themes child's functions.php file or using a plugin like Code Snippets.

code snippets plugin

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

Hooks (actions as well as filters)

Below is an illustration of useful 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 = wp_get_post_terms( $post->ID and $attribute_name ) $terms_array = array() // if ( ! empty( $terms ) )  foreach ( terms as $terms ) $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; 

You could also create a customized 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.'; 

For more information on using these functions, check out the complete listing of hooks.

Template for a global web page

When you're working with PHP code, another alternative is to create a global custom template for your product by starting from the ground up. Keep in mind this 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 situation in this scenario, it might be beneficial to change "Example Template" with "Global Personalized Product Page Template" or something similar.

The template will be modelled after the default product page. Then, you can alter it however you like by using web hooks.

Increase sales by creating a customized product webpage

The design of your page for products can aid in the promotion of your offerings. Additionally, it allows you to give customers more options and create a unique user experience that is engaging for your customers. We've seen that you can use a variety of methods to edit this page.

If you're using blocks in your theme, you may use the Site Editor to alter the look of your global template. To enhance the functionality of your site, you can install extensions. If you're an experienced WordPress use, you may prefer to utilize CSS or PHP, but this can be a risky process.