(Untitled)

Jul 10, 2024

For your product to be effectively displayed online, you'll require pages that are visually attractive and simple to navigate. The default template offers all the basics, however you might be looking for more features that can meet your unique requirements for your store online and complement your style.

With built-in customization tools like the block editor or site Editor, WordPress enables you to modify the pages of your products without significant knowledge of development. Plus, you can receive specific features for design and additional functions with various extensions. If you're a more experienced WordPress use, you may modify your product pages using custom code.

In this blog this article, we'll examine the default product page and discuss the reasons you might want to customize the page. In the next post, we'll demonstrate three ways to start customizing product page templates.

What is a product page?

Once you have installed it on your WordPress site it instantly generates the Shop page, where you'll be able to list the products you sell. When a user clicks any item in your catalog, they'll be taken to the corresponding product page. The format of this webpage will depend upon your design, however it'll contain vital information about the product.

You can add or edit this information by navigating to your Product tab on the top menu on your WordPress dashboard, finding your product, then clicking Edit Products. You can also click on Add New to make a brand new product.

product page in the Woo dashboard
adding a simple product

On this page, you may also select a category for your product and then add tags. These features enable customers to navigate your product catalog with greater ease.

When you're finished configuring your product, press the Update button. Here's what a default product page might look like on the front end:

product listing for a WordPress pennant

It is evident that the product page has all the necessary information to sell your products online. Be aware that the design that you will see at the front end of your page will be identical for every product.

The reason you should personalize your product page

Why should modify the website for your products if it works just fine?

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

If you're looking for a minimal style and want only the most essential features to sell your goods, you may not need to make any modifications. It's not a requirement that you need tocustomize product pages and the standard options have been working just perfectly for thousands of business owners.

The default product page design isn't always the best. In particular, it doesn't offer an option to add other types of media like videos, or variations of Swatches.

The simplicity of this approach could work well in some shops. Others will require more features to help increase sales.

With this in mind, it is recommended to customize your product page to include the following features:

  • Provide more information about your product. If you can provide your customers with all the information they need, it may be more straightforward for them to make an educated decision (and to purchase). It is possible to include a FAQ section, variations of swatches, 360-degree images, videos, and so on.

Three different ways to modify the pages of products

Let's take a look at three ways to personalize your products page!

1. By using the Site Editor

One of the great things that is great about WordPress is that the native tools are great for beginners. Because of its Site Editor it is not necessary to know how to code for creating beautiful custom product pages .

The Site Editor functions similarly to the blocks editor. However, while it is utilized for page and blog posts The Site Editor allows the user to alter all elements, such as your header, footer, as well as the template for your product page.

It is important to note that you are able to utilize the Site Editor only with an unblocking theme. If you're using a standard theme you'll need to refer to the third method in this tutorial.

The content on every page on your product can only be modified by going to the Products tab and open the product using the editor in the backend (as previously mentioned). The next thing we'll do is customize the page elements and the style of the product page.

To get started for a start, head to Appearance - Editor and click on 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

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

editing the single product template

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

default single product template

Simply click on the template and you'll be asked to transform this template in blocks. Hit the Transform into blocks button to begin.

classic template placeholder

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

editing the product page with blocks

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

Alter the layout of the page

To change the layout to change the layout, select a bigger block, then select the block that is its parent.

selecting columns on the product page

Your horizontal menu should then show arrows that allow users to shift that portion of the screen left or to the right.

option to move a block left or right

It is also possible to shift blocks or groups of blocks up and down.

moving description block up

If you'd like to insert a block, just hover over the area where you'd like to insert it and then click the plus symbol.

adding a block to the product page

If you're looking to alter the layout, adding blocks for columns or groups make the most sense.

It is also possible to change the template layout by clicking it, and then navigating to your block configurations.

setting layout options for the product page

In Layout under Layout, you'll have the choice of changing the purpose and positioning of the layout. The design can be made into something that's "sticky" component -- that means it doesn't go away as users scroll through the page.

If you're satisfied with your modifications, hit the Save button that is located on the top of your screen.

Change colors and typography

To modify colors in The Site Editor choose the element you'd like to edit and open your block's settings to the right.

block settings screen

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

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 on the section that reads There is no color selection, you'll get an option to select colors.

color picker for blocks

You can move your mouse over to choose the right colour. The Site Editor will even notify you when you've picked a poor color contrast.

adding a custom color to a block

It is also possible to input HEX, HSL, or RGB color codes. This is very useful since it allows you to ensure that the colors of your business are in line with.

In the Typography tab, you are able to modify the text's size to small, medium or large.

For more settings for fonts Click on the three dots to the right of the word "typography".

font size options dropdown

You have tons of options in this section. Click to choose the ones you like and then add them to your Typography menu.

choosing more typography options

You are able to remove the settings you want to disable if that you do not need them.

Create new blocks

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

If, for instance, you're organizing a massive sale on your site it's possible to add one of the banner blocks to the top of your design.

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

It's an excellent idea to get familiar with the various WordPress block and so that you know what options you have.

Create different types of product pages

As you've noticed, there are several ways to customize the product page template using The Site Editor. Any changes you make will be reflected on all your product pages.

However, in some cases, you might want an exclusive template in a certain type of product or category. You might, for example, want a totally unique product page for a new item that you're planning to launch. You might also want to design a sales site for a particular item category during the holiday season.

To make multiple templates to serve various purposes, visit Appearance - Editor - Templates. Click on the plus symbol to add a new template and choose the single item, Product.

template options

This lets you create an entirely new template for your product's page, but for one item. Choose the product you want to create from the drop-down menu and open The Site Editor.

assigning products to a template

As a default, you'll be prompted 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

Using a pre-existing pattern can aid in speeding up the process of designing. But you can always skip this step if you would rather start fresh.

If you go back to the Templates screen, then click on the plus symbol for a second time to make a fresh template, you'll see an option to select Categories (product_cat).

adding a new template

This template can be used to be used for specific categories that includes clothes, accessories or even decor.

Choose your preferred category and start creating your template. These steps are exactly similar to the single item: product option.

2. Using extensions

If you're using a block-based theme Site Editor lets you to customize your product template for your page in various ways, all without writing the code.

But it's not giving you the capability to expand the capabilities of your page. Fortunately, there are plenty of extensions available to achieve this even if you're a beginner without any technical expertise.

In this part this section, we'll examine tools that enable you to modify your product page by adding the latest options. To make things easier We've put these extensions into three use examples: creating sophisticated solutions, enhancing the pages of your products as well as increasing sales.

Design and create advanced products

If your online store offers bespoke products or advanced product variants, it might be worth a extension to facilitate 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 variable products by default however the options on these products can be somewhat restricted.

Additionally, the extension allows you to customize your variation galleries, and even create tables that clearly display the options available.

Product Designer for
product designer for

Your clients will be able to add images, clip art as well as templates and shapes to your items. And they'll even have the ability to add them to their carts directly from the design page. The software also produces print-ready documents that can aid in the manufacturing of personalized goods.

Composite Products
composite products with extras

In the case of a shop that sells skates might allow patrons to design their own skate in four steps, customizing everything to their specific preferences. The advanced sorting, filtering and conditional logic make it easier for consumers to find what they're looking for.

The great thing about Composite Products is that it has built-in support for bundles of product. That means when customers create their own unique item, they'll be able to pull from all the products in your catalog.

Price 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 tools, creating a product page for these items can be logistically challenging.

The most common method of selling the product of this kind would be to contact customers with a quote. This can significantly delay the sale process. One of the primary reasons people abandon shopping carts is because they are unable to calculate the total cost of their purchase upfront.

Wholesale for
Wholesale for  extension

It is possible to create and manage various wholesale user roles, and create pricing based on role. It also comes with an easy-to-use registration form creator which allows you to create an online wholesale application.

Optimize product pages

These extensions can help improve your product pages.

360o Image for
mixer product

Although detailed product specifications, static photos, as well as videos, can go a long way, offering a 360o image will help bring your product to life.

The product also has control of navigation and a complete screen modes, which means that your customers can get a good look at your products.

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

The name implies it allows you to create a customized product page that guides shoppers directly to make purchases. Customers can easily add or delete items to their cart and make a payment with no having to wait for the new 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 give your clients many details, you can overwhelm them. Therefore, you might want to make use of tabs on products in order to display product details in a order.

Product sales increase

Here are a few instruments that can assist you to increase your sales using both traditional and more subtil marketing strategies.

Sale Flash Pro
Sale Flash Pro extension
Wishlists

Around 40% of internet shoppers believe that their shopping experience would be better if stores offered wish lists. Given the number of people who say this each online retailer ought to have included this feature in their top priorities.

Product Recommendations
recommended products featuring shoes

The program can also generate automated recommendations based upon the customers' recently viewed history. These reports will aid you to identify the most efficient recommendation methods.

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

This program lets you combine simple and flexible products. You may also suggest optional products and provide bulk discounts. You can also modify the design of your bundles as well as bundled items.

3. Using custom code

It is also possible to modify your product page using custom code. This is especially useful when you're using a traditional theme, and don't possess access to Site Editor.

Be aware that altering your website's theme files is a delicate process. If you're not equipped with the skills to do it, you may be causing damage to your website or causing downtime.

Then, once you're ready to go live with your new changes, make sure to utilize your WordPress child theme. So, the customizations aren't lost in the latest updates to the parent theme.

Now, here are some methods to modify the page of your products with a customized code.

Utilizing custom CSS

If you're looking to alter the look of your website using code, CSS is your best option. CSS lets you alter elements like fonts, colors hyperlinks, colors, and much more.

There are several options to do this. Let's look.

In the Site Editor

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

adding CSS to the Site Editor

You can place your code inside the Additional CSS box.

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

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

You'd simply replace "ffffff" with the color you prefer. color code.

For those who want to change the font size then you could use this CSS code:

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

Make sure you publish your modifications.

It's true that this is just a handful of easy examples, but there are many possibilities. If you're looking to learn more, you can check out the WordPress guide on CSS.

The Customizer

If your theme does not support full editing of your site, you'll have to add your CSS code to the Customizer. To add it visit the Appearance tab, then Customize and finally Other CSS.

Advanced product variation extension

CSS functions in the exact way here as it does in the Site Editor.

Within your Child theme's style.css file

The last place you are able to add CSS to WordPress can be found in the theme's style.css file. It is important to collaborate with your child theme to make sure that the changes you've made don't get lost in the update.

Click on Appearance - Theme File Editor.

editing CSS in theme files

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

Then, you can add any CSS in the last line in the document. It's just a matter of updating the CSS after you're done.

Utilizing PHP

CSS is great at changing the look of WordPress, but it can't aid in enhancing the functionality of your product pages.

To do that manually with codes, you'll have to make use of PHP. You can add PHP codes to the themes child's functions.php file or by using a plugin such as Code Snippets.

code snippets plugin

There are several suggestions you can test if you're a seasoned WordPress user or developer:

Hooks (actions and filters)

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

You could also 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 template for global pages

If you're using PHP code, a different option is to build a custom global product page template from the ground up. Remember that this method 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 case, you might want to replace "Example Template" by "Global Personalized Product Page Template" or something comparable.

This template will be modeled on the standard product page. You can then modify it as you wish using web hooks.

Get more sales through a custom product webpage

A customized product page will help you effectively showcase your offerings. Additionally, it allows you to provide more choices to your customers and to create an experience that engages your audience. Like we've already seen, there are several ways to modify this page.

If you have an unblocking theme, you can utilize the Site Editor to modify the look of your global template. To add more functionality and functionality, install an extension. If you're a seasoned WordPress user, you might prefer to utilize CSS or PHP, but this can be an extremely delicate procedure.