(Untitled)

Jul 10, 2024

For your product to be effectively displayed online, you'll need product pages that are visually appealing and easy to navigate. The template that comes with default features all the basics, however you might be looking for extra features that meet the specific requirements of your store's online presence and to match your style.

With built-in customization tools like Block Editor and the Site Editor, WordPress enables you to modify your product pages without extensive development expertise. Plus, you can obtain specific design options and additional functions with various extensions. If you're an experienced WordPress use, you can edit your website's pages with customized code.

In this blog this article, we'll examine the default page for products and explain why it's possible to modify the page. We'll then show three different ways you can start customizing product page templates.

What exactly is a page for a product?

Once you have installed it on your WordPress website The plugin immediately creates a Shop page where it will list all of your items. When a user clicks an item from your catalogue and they're taken to the product's page. The design of the page will be largely based on your theme, but it should contain important information regarding the product.

It is possible to edit or add these details by clicking on your Product tab in the menu bar on your WordPress dashboard, finding the item you want to edit, then selecting Edit Product. Alternately, choose Add New to create a new product.

product page in the Woo dashboard
adding a simple product

In this section, you may also select a category for your product and add tags. This lets customers explore your catalogue of items more easily.

After you've finished setting up a product, click the update button. This is how a default product page might look like on the front page:

product listing for a WordPress pennant

You can see that this page for products comes with the essentials for selling your products on the internet. It is important to note that the layout displayed on the front end of your site is the same for all products.

What are the reasons you should tailor the product's page

Why should modify the website for your products when it's working fine?

Perhaps there's no need in the first place.

If you like a simple design and only want important features for selling your items, you may not need to make any adjustments. Nothing says you have tocustomize product pages and the default options have worked just perfectly for thousands of proprietors of stores.

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

This simplicity might work for some online shops. But others will want additional features to help increase sales.

This is why 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 information they need, it may be more straightforward for them to make an informed decision (and make a purchase). You can add a product FAQ tab, variation of swatches, 360-degree images, videos, etc.

Three different ways to modify the product page

We'll now examine three ways that you can personalize your product web page!

1. Using the Site Editor

The great thing with WordPress is that its native functions are extremely user-friendly. Thanks to its Site Editor, you don't need to be a programmer in order to create stunning custom product pages in .

The Site Editor operates similarly to the blocks editor. While the former is utilized for page and blog posts it is a Site Editor that allows the user to alter global elements like the header, footer and even the design of your page.

It is important to note that you are able to make use of the Site Editor when using an unblocking theme. If you're using a traditional theme you'll have to reference method three in this guide.

The content on every product page may be altered by simply clicking on the Products tab, and then accessing the page 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.

To get started, go to the Appearance Editor and click on the Templates tab..

Appearance --> Editor --> Templates screen

Scroll down to the section where you can select the single product template.

selecting the single product template

Then, click upon the icon for pencil in order to start the template editor.

editing the single product template

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

default single product template

Click on the template area then you'll get a prompt to transform it into block. Hit the Transform into blocks button to begin.

classic template placeholder

Then you are able to modify your page's content by using blocks.

editing the product page with blocks

In case you're not familiar with WordPress blocks, or the Site Editor, we've got a few useful ways to tweak the look of the page's layout:

Alter the layout of the page

To change the layout, click on a larger 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 page left or right.

option to move a block left or right

Additionally, you can shift blocks or groups of blocks upwards and downwards.

moving description block up

If you'd like to add a block, simply hover your cursor over the space where you'd like to insert it and then click the plus symbol.

adding a block to the product page

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

You can also change the template layout by clicking it and then opening the block's options.

setting layout options for the product page

When you select Layout You'll be able to select the choice of changing the purpose and positioning of the design. The design can be made into a "sticky" element - which means it won't disappear as users scroll through the page.

Once you're pleased with the changes, click your Save button at the top of your screen.

Colors can be changed and typography changes.

To modify colors in The Site Editor choose the item you wish to change and then open your block settings on the right.

block settings screen

The components you are able to alter will depend on the block, but generally, you are able to alter the text, background and link color.

In default, you'll be able to select from the theme's default colors.

options for block text, background, and links

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

color picker for blocks

In this section, you are able to drag your mouse around to select the colour. The Site Editor will let you know if 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 ensure that the colors of your business are in line with.

In the Tab for Typography section, click on the Typography tab. You have the option to alter the font size to small, medium and large.

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

font size options dropdown

There are a lot of choices here. Click to choose 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 you don't need them.

Make new blocks

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

For instance, when you're conducting a sale across the entire site You could include a banner block to the uppermost part of your design.

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

It's an excellent idea to familiarize yourself with the available WordPress blocks and blocks, to see the alternatives you can choose from.

Create different types of pages for products

As you've learned that there are a variety of ways to customize the product page template in the Editor for Sites. The changes you make will be reflected on every page of your products.

But in certain cases it's possible to use templates that are only suitable to promote a particular type of product or even a specific category. You might, for example, want a totally unique product page for an item you're launching. Or, you might want to develop a sale page specifically for a specific segment of products during the Christmas season.

For multiple templates that can be used for different purposes, go to Appearance - Editor – Templates. After that, you can click the plus sign to add a new template and choose one item to add: Product.

template options

This allows you to design an entirely new template for your product's page however, only for one product. Choose the product you want to create in the menu, and then open your Site Editor.

assigning products to a template

In the default setting it will prompt you to use a pre-existing pattern. First, you'll want to choose the general template for your product page.

choosing a pattern

Utilizing an existing pattern could assist in the speedy design process. However, you are able to bypass this process if you prefer to start from scratch.

When you go back to the templates screen and hit the plus button once more to create a new template, you'll be presented with the option of selecting Categories (product_cat).

adding a new template

This template will be for a specific category, like clothes, accessories, or decor.

Select your desired category, then start creating your template. These steps are exactly identical to those for the Single item: Product option.

2. Using extensions

As you've seen, when you're using a block-based theme Site Editor lets you to customize your product template for your page in various ways, without touching a line of code.

Still, it doesn't give you the capability to expand the capabilities of your page. Fortunately, there are plenty of extensions available to do this, even if you're a beginner without any technical expertise.

In this part we'll take a look at some tools to help you change your website's appearance to include additional features. To simplify things, we've organized these extensions into three use examples: creating sophisticated products, optimizing product pages, and increasing the number of sales.

Design and create advanced products

If you have an online shop that offers bespoke products or advanced product versions, then you may need an extension that will facilitate selling of these products. In this article, we'll look at some top options.

Advanced Product Variation
advanced product variation extension

You can create variable products by default, but the settings are somewhat limited.

Furthermore, this extension lets you to personalize your galleries, and even create tables that clearly display the options available.

Product Designer for
product designer for

Customers will have the ability to upload pictures, clip art as well as templates and shapes for your designs. In addition, they'll be able to add them to their carts directly from the design page. Additionally, it creates print-ready images which will facilitate the creation of customized goods.

Composite Products
composite products with extras

For instance, a shop that sells skates might allow patrons to construct their own boards in four steps, customizing everything to their specific requirements. The advanced sorting, filtering and conditional logic make it simple for customers to find what they're looking for.

The greatest benefit of Composite Products is that it comes with integrated support for bundles of products. That means when customers create their own unique product, they'll have the ability to choose from a variety of options within the catalog.

Pricing by Formula Calculator for
Product Price by Custom Formula extension

Customized products may require additional sources, for example, additional fabrics or wood. If you don't have the appropriate tools, creating a product page for these items can be difficult logistically.

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

Wholesale For
Wholesale for  extension

It is possible to create and manage different wholesale user roles as well as establish pricing on the basis of role. Additionally, it comes with a drag-and-drop registration form builder and allows you to build an application for wholesale.

Optimize product pages

Here are some extensions that could help enhance your product pages.

360o Image for
mixer product

In spite of the fact that detailed specifications for your product, static photos, and videos can be helpful, offering a 360o image can help bring your products to life.

It also comes with navigation controls and offers full screen mode, so your clients can have an overview of your product.

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

As the name suggests, this extension lets you create a customized product page that guides shoppers directly to make purchases. You can also add items from their carts and make a payment with no needing to wait for a different website to be loaded.

This program is perfect for sites with fewer products or targeted landing pages associated with advertising campaigns.

Tab Manager
Tab manager extension

However, if you provide your customers with excessive information they could be overwhelmed. So, it is possible to utilize product tabs for presenting information about the product in an organized manner.

Increase product sales

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

Sale Flash Pro
Sale Flash Pro extension
Wishlists

Around 40% of internet buyers say that their user experience is better when stores offered wish lists. With a number that high, every online store could have put this option as a top priority on their checklist.

Product Recommendations
recommended products featuring shoes

It could even create automatic recommendations based upon the customers recent history of viewing. Useful reports can also assist you in identifying your most efficient recommendation methods.

Product Add-Ons
product add-on options
Bundles of Products
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 and bundled products.

3. Using custom code

You can also alter your page's content by using a custom code. This method is particularly useful if you're using a classic theme and therefore don't get access to the Editor for Sites.

It is important to note that directly altering the themes files on your website is not a simple task. If you're not equipped skills to do it, you may cause damage to your website or causing downtime.

Once you're prepared to make your changes live ensure that you utilize the WordPress parent theme. This way, your customizations aren't lost in any changes to your theme's parent.

Here are a few ways to alter the page of your products with a customized code.

Using custom CSS

If you're looking to alter the appearance of your website using code, CSS is your best option. It enables you to modify items like fonts, colors, links, and more.

There are a few ways you can do this. We'll look at them.

In 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 in the Additional CSS box.

In the case of example, if you want to modify the color of a product description, you can do so by using a code snippet like this:

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

It's as simple as replacing "ffffff" by your favorite color code.

If you'd like to change the font's size, it is possible to do so using this CSS code:

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

Be sure to make sure to publish your modifications.

Of course, these are only a handful of basic examples, however the opportunities are endless. If you're interested in learning more, make sure to check out the WordPress tutorial on CSS.

The Customizer

If your theme does not support full editing of your site, you'll have to add your CSS code into the Customizer. For this, go to Appearance - Customize Add Additional CSS.

Advanced product variation extension

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

In the child theme's style.css file

The last location where you are able to include CSS to WordPress can be found in the theme's style.css file. You'll need to coordinate together with your child theme to ensure that your modifications aren't lost in update.

Visit Appearance - Theme File Editor.

editing CSS in theme files

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

Then, you can include any CSS to the very bottom of the file. You'll just need to update the CSS after you're done.

Using PHP

CSS is great for changing the look of WordPress However, it won't aid in enhancing the functionality of your pages for selling products.

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

code snippets plugin

There are several options you might want to test if you're a seasoned WordPress developer or user:

Hooks (actions as well as filters)

Here's an example of a 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 = wp_get_post_terms( $post->ID and $attribute_name ); $terms_array = array(); if ( ! empty( $terms ) )  foreach ( term $terms) ) $archive_link = get_term_link( $term->slug, $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 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 learn more about how to use these functions, refer to this comprehensive list of hooks.

Template for a global web page

If you're using PHP code for , another alternative is to make a customized global product page template from scratch. Be aware this 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 situation it is possible to substitute "Example Template" with "Global Customer-specific Product Page Template" or something like that.

This template will be modeled on the standard product page. You can then change it to your liking using web hooks.

Increase sales by creating a customized 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, there are several ways to alter the page.

If you're using an unblocking theme, you can utilize the Site Editor tool to change the appearance of the global template. For more features, you can install extensions. If you're an experienced WordPress users, then you could prefer to utilize CSS or PHP however this may be a delicate process.