(Untitled)

Jul 10, 2024

For your product to be effectively displayed online, you'll need product pages that are appealing and user-friendly. The template that comes with default features basic features, but you might be looking for additional features to accommodate your unique requirements for your store's online presence and to match the style of your store.

With built-in customization tools like the block editor and the Site Editor, WordPress enables you to create significant modifications to the pages of your products without significant knowledge of development. Plus, you can obtain specific design options as well as additional functionality through various extensions. If you're a more skilled WordPress users, then you can alter your pages' content using the custom code.

In this post we'll take a look at the default page for products and explain why you might want to customize the page. In the next post, we'll demonstrate three ways to modify the templates of your products.

What is a product page?

If you add it to your WordPress website, the plugin instantly creates a Shop page where you'll be able to list your products. If someone clicks an item from your catalogue, they'll be taken to the product's page. The layout of this webpage will depend on your theme, but it should contain important information about the product.

You can add or edit these details by clicking on your products tab in the menu bar on your WordPress dashboard, selecting your product, then clicking Edit Products. Alternately, choose "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 the category of your item and add tags. These options allow customers to browse your catalog of products more easily.

After you've finished setting up a product, hit the Update button. Here's what a default product web page could look like on the front page:

product listing for a WordPress pennant

As you can see, the product page has everything you need to market your products on the internet. Note that the template that you will see at the front page of your site is the same for all products.

Why you should customize the product's page

Then, why would you alter the page of your product if it works just fine?

Well, perhaps you don't need to any more.

If you prefer a minimalist layout and are only looking for essential features to sell your items, you may not require any changes. It's not a requirement that you have tocustomize product pages and the default options have worked just fine for thousands of successful store owners.

That said, the standard design of the product pages can be limiting. There's for instance, no option to add other types of media like video files or variation colors.

It's a simple approach that could be useful for some online shops. Others will require more options to increase sales.

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

  • Provide more information about the product you offer. If you provide customers with all the necessary information, it may be easier for them to make an informed decision (and to purchase). You can add a product FAQ section, variations pictures, 360 swatches videos, and so on.

Three ways to customize the pages of products

Now, let's examine three ways that you can personalize your product web page!

1. By using the Site Editor

The great thing about WordPress is that its native tools are great for beginners. Because of the Site Editor it is not necessary to be a programmer for creating amazing custom pages for your products .

The Site Editor functions exactly the same way to it's Block Editor. However, while it is used for pages and blog posts it is a Site Editor that allows you to customize global elements like your header, footer, and even the design of your page.

Note that you can only use the Site Editor with the block theme. If you're using a classic theme, you'll have to reference step three of this article.

Additionally, the information on every page on your product can be changed only by going to the Products tab and accessing the page using the editor in the backend (as previously mentioned). The next thing we'll create is to customize the components as well as the design of your product page.

To begin To begin, visit Appearance - Editor and select Templates.

Appearance --> Editor --> Templates screen

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

selecting the single product template

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

editing the single product template

At first, you'll see that the template has been grayed out.

default single product template

Simply click on the template and you'll be asked to transform this template in blocks. Click the transform into blocks button to proceed.

classic template placeholder

You can now modify your page's content by using blocks.

editing the product page with blocks

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

Modify the layout of your page

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 show arrows that allow users to shift that portion of the screen left or right.

option to move a block left or right

You're also able to shift blocks or groups of blocks both up and down.

moving description block up

In addition, if you wish to include a block just hover over the area in which you'd like to place it and then click the plus symbol.

adding a block to the product page

If you're looking to alter the layout of your website, then adding blocks to columns or groups make the best sense.

You can also modify the global template layout by selecting it and then opening your block options.

setting layout options for the product page

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

Once you're pleased with your changes, press your Save button that is located on the upper right of the screen.

Colors can be changed and typography changes.

To modify colors in the Site Editor, select the component you want to change and then open your block's settings to the right.

block settings screen

The components you are able to alter are contingent on the block, but generally, you are able to alter the text, background, and link colors.

As a default, you are able to choose from your theme's default color scheme.

options for block text, background, and links

If you click the area that says "No color", you'll get the color selector.

color picker for blocks

In this section, you are able to drag the mouse to pick a shade. The Site Editor can inform you if you've chosen a color with poor contrast.

adding a custom color to a block

You can also input specific HEX, HSL, or RGB colors. This is ideal as it allows you to match your exact company colors.

Within the Tab for Typography tab, you can modify the text's size to medium, small or large.

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

font size options dropdown

There are a lot of choices in this section. Just click to select these and then save them in the typography menu.

choosing more typography options

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

Make new blocks

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

If, for instance, you're conducting a sale across the entire site, you could add one of the banner blocks 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 be familiar with available WordPress block and so you can see what options you have.

Create different types of pages for products

As you've learned that there are a variety of ways to modify the template for your pages within the Site Editor. Any changes you make will be reflected on all your product pages.

In certain situations, you might want a template that's only used to promote a particular type of product or category. For instance, you might need a completely unique page for an item that you're planning to launch. You might also want to develop a sale site for a particular segment of products during the Christmas season.

To make multiple templates to serve different purposes, go to Appearance - Editor - Templates. Then, click on the plus symbol to add a new template and choose the single item, Product.

template options

This lets you create a new product page template with only one option. Select the item you wish to use from the menu to open The Site Editor.

assigning products to a template

By default it will prompt you to use a pre-existing pattern. Your first choice should be 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 bypass this process if you prefer to start from scratch.

When you go back to the Templates screen and hit the plus symbol again to add a new template, there will be an option for you to choose Category (product_cat).

adding a new template

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

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

2. Utilizing extensions

If you're using a block-based theme Site Editor lets the user to alter your page template in different 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 to help you accomplish this, regardless of whether you're a beginner without technical skills.

In this section, we'll look at some tools that enable you to alter your page's content to include new options. In order to make it easier for you We've put the extension into three different use scenarios: to create advanced products, enhancing product pages as well as increasing the sales.

Develop products that are innovative

If your online store offers customized products or more advanced variants, it might be worth a extension to facilitate selling of these products. Here, we'll discuss a few top-notch options.

Advanced Product Variation
advanced product variation extension

enables you to create variables in your products However, the configurations on these products can be somewhat limited.

Additionally, the extension allows you to personalize your galleries as well as create tables to clearly highlight the various options.

Product Designer for
product designer for

Your customers will be able to include clips, images forms, templates, and shapes to your items. And they'll even be able to add them into their shopping carts from the design page. Additionally, it creates print-ready images, which can help facilitate the creation of customized items.

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 each step to meet their personal needs. Advanced sorting, filtering, and conditional logic make it easier for consumers to locate what they're looking for.

The greatest benefit of Composite Products is that it has built-in support for product bundles. That means when customers create their unique product, they'll be able to pull from all the available items in your catalog.

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

Customized products may require additional resources, like additional fabric or wood. Without the right equipment, creating a page for these items can be difficult logistically.

The traditional way to sell this type of product would be to get in touch with buyers with a proposal. But this can drastically slow down the sales process. In fact, one of the main reasons that shoppers abandon carts is that they can't calculate the total cost of the order upfront.

Wholesale For
Wholesale for  extension

You can create and manage different wholesale user roles as well as establish pricing on the basis of role. The software also includes an easy-to-use registration form creator which allows you to create an application for wholesale.

Optimize product pages

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

360o Image for
mixer product

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

It also comes with navigation controls and offers full screen mode, so your clients can have a good look at your products.

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

The name implies the extension allows you to build a custom website that directs shoppers directly to make purchases. You can also add products from their cart and pay without having to wait for the new website to be loaded.

This is a great tool for landing pages with less content or landing pages that are targeted with marketing campaigns.

Tab Manager
Tab manager extension

That said, if you offer your clients many details it can be overwhelming. So, it is possible to utilize product tabs to display product details in a a more organized way.

Product sales increase

Below are tools that will help you improve your sales through both traditional and more sophisticated marketing techniques.

Sale Flash Pro
Sale Flash Pro extension
Wishlists

A little over 40 percent of online customers claim that their customer experience will be improved if retailers offered wishlists. With a number that high each online retailer ought to have included this feature in their top priorities.

Product Recommendations
recommended products featuring shoes

It could even create automatic suggestions based on shoppers' recently viewed history. The reports are useful to assist you in identifying your best recommendation methods.

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

This program lets you group simple as well as variable products. You can even recommend optional items and offer bulk quantity discounts. Plus, you're able to modify the design of the bundles and items.

3. Using custom code

You can also modify your product page with a custom-code. This technique is especially helpful if you're using a classic theme and therefore don't possess access to Site Editor.

It is important to note that directly altering the theme files of your site is a delicate process. If you're not equipped with the skills to do it, you may end up damaging your site or causing slowdowns.

Once you're prepared to go live with your new changes Make sure you use a WordPress parent theme. In this way, your personalizations won't be lost with the latest updates to the parent theme.

Here are a few methods to modify your page's content with a customized code.

Using custom CSS

If you want to customize the look of your website using code, CSS is the ideal choice. It enables you to modify elements like fonts, colors, links, and more.

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

In the Site Editor

For adding CSS to your page for products using Site Editor, go to Appearance - Editor - Styles Extra CSS.

adding CSS to the Site Editor

You can place your code into the Additional CSS box.

If, for instance, you'd like to change the hue of a title, you could use the code that reads like:

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

Simply replace "ffffff" with the color you prefer. color code.

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

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

Make sure you make sure to publish your changes.

Of course, this is just a handful of easy examples, but there are many possibilities. If you're looking to learn more about CSS, look up the WordPress guide about CSS.

Within 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 you need to go to Appearance - Customize Other CSS.

Advanced product variation extension

CSS works in the same way here as it does in the Editor for Sites.

In the child theme's style.css file

The last location where you could include CSS to WordPress is in your theme's style.css file. It is important to coordinate with your child theme to make sure that the changes you've made don't get lost in the changes.

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

editing CSS in theme files

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

Then, you can include any CSS in the last line on the page. You'll just need to update the file when you're done.

Utilizing PHP

CSS can be used to alter the design of WordPress However, it won't assist you in adding functionality to your pages for selling products.

If you want to do this manually using codes, you'll have to use PHP. You can add PHP codes to the children theme's functions.php file or using a plugin like Code Snippets.

code snippets plugin

Here are a few 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 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 and $attribute_name ) the $terms_array is an array() array(); if ( ! empty( $terms ) ) $terms = foreach ( terms as $terms ) the$archive_link = Get_Term_Link( $term->slug attribute_name, $term->slug );$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; 

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 features, take a look at this complete listing of hooks.

A template for global pages

When working with PHP code for , another alternative is to create a global custom product page template completely from the ground up. Remember 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 in this scenario, it might be beneficial to change "Example Template" by "Global Custom Product Page Template" or something similar.

The template is modeled after the default product page. You can then alter it however you like by using web hooks.

Get more sales through a custom product webpage

Customizing your product page can help you effectively showcase your products. It also enables you to provide more choices to your customers and create a unique customer experience that draws in your target audience. Like we've already seen, there are several ways to edit the page.

If you're using an unblocking theme, you can utilize the Site Editor tool to change the design of the global template. For more features and functionality, install an extension. If you're an experienced WordPress use, you could want to use CSS or PHP, but this can be a risky process.