(Untitled)

Jul 12, 2024

To effectively showcase your goods online, you'll require pages that look appealing and user-friendly. The template that comes with default features basic features, but you could be searching for additional features to accommodate your unique requirements for your store's online presence and to match the style of your store.

Utilizing built-in tools for customization, such as the block editor and Site Editor, WordPress enables you to modify your product pages without extensive knowledge of development. Additionally, you'll be able to obtain specific design options and added functionality with different extensions. If you're a more experienced WordPress user, you may alter your pages' content using custom codes.

In this blog we'll take a look at the default product page and explain why you might want to customize it. We'll then show three options to start customizing product page templates.

What is a product page?

If you add it to your WordPress website The plugin immediately creates an online shop page on which you can list all your products. If a visitor clicks on any item in your catalog, they'll be taken to the corresponding product page. The layout of this page will largely depend on your theme, but it will contain some essential information about the product.

You can add or edit these details by clicking on your products tab of the menu bar on your WordPress dashboard, finding the item you want to edit, then selecting Edit Product. You can also click on "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 options allow customers to explore your catalogue of items at a greater ease.

When you're finished configuring a product, hit the Update button. Here's how a default web page could look like on the front-end:

product listing for a WordPress pennant

As you can see, this page for products comes with the essentials for selling your goods on the internet. Be aware that the design you see on the front page of your website is the same for all products.

Why you should customize the product's page

So, why should modify the website for your products when it's working fine?

Perhaps you don't have to at all.

If you're looking for a minimal design and only want important features for selling your products, you might not require any modifications. Nothing says you have tocustomize product pages and the standard options have been working just perfectly for thousands of business owners.

However, the template for the default page isn't always the best. There's for instance, no possibility to include other kinds of media, like videos, or variations of colors.

This simplicity might work for some online shops. However, others may require additional options to increase sales.

This is why you should customize your product page if you'd like to:

  • Give more details about your product. If you can provide your customers with all of the relevant information it may be easier for them to make an educated purchase (and to purchase). It is possible to include a FAQ tab, variation swatches, 360 images, videos, etc.

Three ways to customize the page of your product

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

1. Utilizing the Site Editor

The great thing about WordPress is that its built-in functions are extremely user-friendly. Because of Site Editor Site Editor You don't have to be a programmer in order to create amazing custom pages for your products .

The Site Editor functions similarly similar to that of the block editor. But while the latter can be used to create pages as well as blog posts it is a Site Editor that allows you to customize the elements of your website, including your footer, header, 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 still using a standard theme it's best to use method three in this guide.

Additionally, the information on every product page may be changed only by clicking on the Products tab, and then accessing the page within the back-end editor (as shown earlier). What we're about to modify is the elements and the style of the product page.

To begin for a start, head to "Appearance" - Editor and select the Templates tab..

Appearance --> Editor --> Templates screen

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

selecting the single product template

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

editing the single product template

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

default single product template

Select the template and you'll be asked to turn this template in blocks. Hit the Transform into Blocks button to proceed.

classic template placeholder

You can now make changes to your website using blocks.

editing the product page with blocks

In case you're not acquainted with WordPress blocks or the Site Editor, here's some useful methods to modify the page's layout:

Modify the layout of your page

To alter the layout of your page to change the layout, select a bigger block and select the parent block.

selecting columns on the product page

Your horizontal menu should then display arrows that enable you to navigate that section of the page left or right.

option to move a block left or right

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

moving description block up

Additionally, if you want to insert a block, simply hover over the place in which you'd like to place the block, then click the plus symbol.

adding a block to the product page

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

You can also make global changes to the template layout by selecting it, and then navigating to your block options.

setting layout options for the product page

In Layout You'll be able to select an option of altering the purpose and positioning of the design. You can even transform it into a "sticky" component -- that means it doesn't go away whenever users scroll down the page.

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

Alter the colors, fonts and color

For changing colors using the Editor for Sites, select the item you wish to change and then open your block's settings to the right.

block settings screen

The elements you can change will vary based on the block, but generally, you are able to alter the text, background and link color.

By default, you can pick from the default theme color scheme.

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

Here, you can drag your mouse around to select the right colour. The Site Editor can inform you if you've picked a poor color contrast.

adding a custom color to a block

Additionally, you can input HEX, HSL, or RGB color codes. This is great because it lets you make sure that your company colors are exactly the same.

In the Tab for Typography Tab, there is a way to can change the size of text to small, medium, large, etc.

For more settings for fonts Click on the three dots next to Typography.

font size options dropdown

There are a lot of choices in this section. Click to choose them and add them to your Typography menu.

choosing more typography options

It is possible to deactivate these options if you decide that they aren't necessary.

Make new blocks

Want to add elements to the product page? The Site Editor makes it possible.

If, for instance, you're organizing a massive sale on your site it's possible to add an advertising block at the uppermost part of your template.

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

It's a good idea to be familiar with available WordPress block and, so that you know what possibilities you can select from.

Create different types of pages for products

As you've seen, there are several ways to alter the design of your product page template using the Site Editor. Changes you make to the template will show up on all your product pages.

However, in some cases it's possible to use a template that's only used to promote a particular type of product or even a specific category. You might, for example, want a totally unique product webpage for the new product you're about to launch. Or, you might want to design a sales site for a particular product category around the holidays.

To create multiple templates for different purposes, go to the Appearance Editor and click on Templates. Then, click on the plus icon to create the template you want to create and select Single item: Product.

template options

It allows you to create the template of a brand new page for your products with only one option. Choose the product you want to create from the menu to open the Site Editor.

assigning products to a template

As a default the system will ask you to use a pre-existing pattern. The first option you should choose is the template you use for your overall product page.

choosing a pattern

Utilizing a pattern that is already in use can assist in the speedy design process. You can also skip this step if you prefer to start from scratch.

When you go back to the Templates screen, then click on the plus button once more to create a new template, you'll be presented with an option for you to choose Categories (product_cat).

adding a new template

This template can be used for a specific category that includes accessories, clothing, or even decor.

Select your desired category, then start building your template. The process is the same as with the single item: product option.

2. Using extensions

Like you've noticed, when you're using a block theme Site Editor lets users to modify their product page template in different ways, without touching the code.

But it's not giving users the possibility of expanding the capabilities of your page. Fortunately, there are plenty of extensions available to achieve this even if you're not a professional with technical skills.

In this article, we'll look at some tools to help you change your website's appearance by adding additional features. In order to make it easier for you We've put the extension into three different use scenarios: to create advanced solutions, enhancing the pages of your products to increase the sales.

Create advanced products

If you have an online shop that offers custom-designed products or sophisticated product variants, it might be worth extensions to ease the sale of these items. Here, we'll discuss some top options.

Advanced Product Variation
advanced product variation extension

You can create variable products by default however the options for these items can be a bit limited.

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

Product Designer for
product designer for

Customers will have the ability to upload images, clip art, shapes, and templates to your products. In addition, they'll be able to add these items to their carts right on the design page. The software also produces print-ready documents that can aid in the production of custom products.

Composite Products
composite products with extras

A shop that sells skates might allow patrons to construct their own boards with just four steps. They can then customize the entire process to suit their individual preferences. Filtering, sorting, and conditional logic makes it easy for shoppers to find what they're looking for.

The best thing about Composite Products is that it has built-in support for bundles of product. This means that when customers design their own item, they'll be able draw from the options in the catalog.

Pricing by Formula Calculator for
Product Price by Custom Formula extension

Some custom products require more resources, like additional fabric or wood. If you don't have the appropriate tools, creating a product page for these items can be a challenge in terms of logistics.

The traditional way to sell the product of this kind is to contact customers with a quote. But this can drastically delay the sale process. In fact, one of the most common reasons why shoppers abandon carts is the inability to determine the cost total of the order upfront.

Wholesale for
Wholesale for  extension

You can create and manage different wholesale user roles as well as create pricing based on role. The software also includes the ability to drag and drop registration forms and allows you to build an online wholesale application.

Optimize product pages

These extensions could help enhance your product pages.

360o Image for
mixer product

In spite of the fact that detailed specifications for your product images, static pictures, and even videos could be helpful and a 360o video will help bring your product to life.

It also comes with the ability to navigate and has a full screen mode, so your customers will have a good look at the product.

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

As the name suggests the extension allows you to design a unique website that directs shoppers directly to purchase. You can also add items from their carts and complete payment without ever waiting for a new website to be loaded.

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 provide your customers with too much information it can be overwhelming. This is why you may want use tabs for products to display product details in a an organized manner.

Product sales increase

Here are a few instruments that can assist you to improve your sales through both traditional as well as more sophisticated marketing techniques.

Sale Flash Pro
Sale Flash Pro extension
Wishlists

About 40% of online shoppers believe that their shopping experience is better when retailers offered wishlists. With a number that high each online retailer ought to have included this feature as a top priority on their checklist.

Product Recommendations
recommended products featuring shoes

The program can also generate automated recommendations based upon the customers most recently visited history. Useful reports can also 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 group simple as well as variable items. You may also suggest optional items and offer bulk quantity discounts. Additionally, you can customize the appearance of your bundles as well as bundled items.

3. Using custom code

Additionally, you can edit your website's product pages by using a custom code. This technique is especially helpful when you're using a traditional theme and do not have access to the Site Editor.

It is important to note that directly altering the themes files on your website is an extremely risky process. If you don't have the technical expertise, you could cause damage to your website and causing downtime.

When you're ready to go live with your new changes Make sure you use your WordPress child theme. This way, your customizations will not be affected by any changes to your theme's parent.

Now, here are some methods to modify the page of your products using custom code.

Utilizing custom CSS

If you're looking to alter the look of your website using code, CSS is the ideal choice. You can alter items like fonts, colors as well as links.

There are several ways you can do this. Let's take a look.

In the Site Editor

To include CSS on your website's product pages using Site Editor, click the Editor's Appearance and click on Styles Other CSS.

adding CSS to the Site Editor

You can place your code in the Additional CSS box.

In the case of example, if you wish to alter the hue of a 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" with your preferred color code.

Or, 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 changes.

Naturally, these are only a handful of easy examples, but the possibilities are limitless. If you're interested in knowing more, make sure to go through the WordPress tutorial on CSS.

Within the Customizer

If the theme you're using doesn't allow complete site editing, then you'll have to add your CSS code into the Customizer. To add it you need to go to Appearance - Customize Additional CSS.

Advanced product variation extension

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

In your Child theme's style.css file

The last location where you could make CSS to WordPress is in your theme's style.css file. You'll need to coordinate with your child theme to make sure that the changes you've made aren't lost in changes.

Click on the Appearance tab and then to the Theme File Editor.

editing CSS in theme files

By default, your style.css file should be chosen. If it's not, select it on the right hand side of the screen under the Theme Files menu.

Then, you can 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 can be used to alter the appearance of WordPress however it doesn't help you add functionality to the pages of your products.

For this to be done manually by using codes, you'll have to utilize PHP. The easiest way to do this is by adding PHP codes to your children theme's functions.php file or with a plugin, such as Code Snippets.

code snippets plugin

There are several alternatives you could test if you're a seasoned WordPress user or developer:

Hooks (actions and filters)

Here's an example of a practical 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 = $terms = wp_get_post_terms( $post->ID, $attribute_name ); $terms_array = array() array(); when ( ! empty( $terms ) )  foreach ( terms as $terms ) $archive_link = get_term_link( $term->slug, $attribute_name )$full_line = ="' . $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; 

Also, you can 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.'; 

To learn more about how to use these functions, refer to this comprehensive list of hooks.

Template for a global web page

When you're working with PHP code, a different option is to make a customized global template for your product by starting from scratch. Be aware 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 scenario it is possible to replace "Example Template" by "Global Custom Template for Product Pages" or something like that.

The template is modeled on the standard product page. After that, you are able to alter it however you like by using web hooks.

Boost sales with a custom product page

The design of your page for products can assist you in showcasing your products. This also lets you provide more choices to your customers and provide a distinctive customer experience that draws in your target audience. As we have seen, you can use a variety of methods to alter 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 and functionality, install an extension. If you're a seasoned WordPress user, you could want to use CSS or PHP however, this could be a risky process.