(Untitled)

Jul 10, 2024

In order to effectively display your products online, you'll require pages that are appealing and user-friendly. The default template provides basic features, but you might be looking for additional features to accommodate your unique requirements for your store's online presence and to match your style.

Through built-in customizing tools such as the block editor or site Editor, WordPress enables you to create significant modifications to your product pages without extensive knowledge of development. Plus, you can get specific design features as well as additional functionality through various extensions. If you're a more skilled WordPress user, you may edit your website's pages with customized code.

In this article we'll take a look at the default product page and discuss the reasons it's possible to modify the page. Then, we'll show you three different ways you can begin to customize templates for your product pages.

What is a product page?

Once you have installed it on your WordPress website, the plugin instantly creates the Shop page, where it will list all of the products you sell. If someone clicks an item from your catalogue and they're taken to the appropriate product page. The layout of this webpage will depend on your theme, but it should contain important information regarding the product.

You can add or edit these details by clicking on your Products tab on the top menu on your WordPress dashboard, selecting your item, and selecting Edit Products. Alternatively, you can choose 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. This lets customers browse your catalog of products more easily.

Once you've completed configuring your product, press the update button. Here's how a default page might look like on the front-end:

product listing for a WordPress pennant

As you can see, this product page comes with everything you need to market your items online. Be aware that the design displayed on the front end of your website will be the same for all items.

What are the reasons you should tailor your page for sale

Why should you customize the product page when it's working fine?

Perhaps you don't need to in the first place.

If you like a simple layout and are only looking for the most essential elements to market your goods, you may not have to make any changes. Nothing says you mustcustomize your product's pages. The basic options have served fine for thousands of successful store owners.

That said, the template for the default page can be limiting. For example, there's no option to add other types of media like videos, or variations of colors.

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

In this regard, you should customize your product page if you'd like to:

  • Give more details about the product you offer. If you provide customers with all the necessary information, it may be simpler for them to come to a choice (and a purchase). You can add a product FAQ section, variations pictures, 360 swatches videos, etc.

Three ways to customize the page of your product

Let's take a examine three ways that you can personalize your product web page!

1. Utilizing the Site Editor

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

The Site Editor functions exactly the same way similar to that of the block editor. But while the latter is utilized for page and blog posts it is a Site Editor that allows users to modify global elements like the header, footer as well as the template for your product page.

You can only use the Site Editor with an unblocking theme. If you're still using a traditional theme you'll need to refer to step three of this article.

Additionally, the information on every page on your product can only be modified by clicking on the Products tab and accessing the page in the back-end editor (as previously mentioned). The next thing we'll do is customize the page elements and the style of your product page.

For a start To begin, visit the Appearance Editor and click on the Templates tab..

Appearance --> Editor --> Templates screen

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

selecting the single product template

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

editing the single product template

In the beginning, you'll notice that the template has been grayed out.

default single product template

Click on the template area and you'll be asked to convert it into block. Hit the Transform into Blocks button to proceed.

classic template placeholder

Now you can edit your product page using blocks.

editing the product page with blocks

If you're unfamiliar with WordPress blocks, or it's Site Editor here are some useful methods you can tweak this page:

Modify the layout of your page

To change the layout, click on a larger block and then choose the parent block.

selecting columns on the product page

The horizontal menu will display arrows that enable you to move that part of the page left or right.

option to move a block left or right

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

moving description block up

If you'd like to insert a block, simply hover over the place that you'd like it to be the block, then click the plus icon.

adding a block to the product page

If you'd like to change the layout of your website, then adding blocks for columns or groups makes the best sense.

You can also modify the global template layout by clicking the template and opening your block's settings.

setting layout options for the product page

When you select Layout You'll be able to select the choice of changing the reason for and location of the design. You can even transform it into a "sticky" element - that means it doesn't go away when visitors scroll down the page.

Once you're pleased with your modifications, hit then the save button located at the at the top of your screen.

Change colors and typography

To change colors within the Site Editor, choose the item you wish to change and then open your block settings on the left.

block settings screen

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

As a default, you are able to pick from the default theme color scheme.

options for block text, background, and links

If you click the box that says "No color" and you'll see an option to select colors.

color picker for blocks

In this section, you are able to drag the mouse to pick the color. The Site Editor can inform you if you've picked a poor 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 make sure that your company colors are exactly the same.

On the Typography section, click on the Typography tab. You are able to alter the font size to small, medium, large, etc.

For more settings for fonts, click on the three dots to the right of Typography.

font size options dropdown

You have tons of options here. Click to choose these and then save them in your typography menu.

choosing more typography options

It is possible to deactivate these settings if you decide you don't need them.

Add new blocks

Want to add elements to the page of your product? The Site Editor can make that feasible.

In the case of organizing a massive sale on your site it's possible to add a banner block to the top of your template.

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

It's an excellent idea to get familiar with the available WordPress blocks as well as blocks to see the possibilities you can select from.

Create multiple types of pages for products

As you've learned that there are a variety of ways to alter the design of your product template for your pages using the Editor for Sites. The changes you make will show up on the pages of your products.

But in certain cases, you might want templates that are only suitable to promote a particular 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 develop a sale page specifically for a specific segment of products during the Christmas season.

To create multiple templates for different purposes, go to the Appearance Editor and click on Templates. After that, you can click the plus symbol to add a new template and choose one item to add: Product.

template options

It allows you to create the template of a brand new page for your products with only one option. Select the item you wish to use from the drop-down menu and open your Site Editor.

assigning products to a template

As a default, you'll be prompted to select a pattern that is already in use. 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. However, you are able to bypass this process if you want to begin from scratch.

Now, if you return to the templates screen, and click the plus button once more to create a new template, there will be an option to select the category (product_cat).

adding a new template

This template can be used to be used for specific categories, like clothes, accessories or decor.

Simply choose your category and begin building your template. These steps are exactly identical to those for the Single item: Product option.

2. Utilizing extensions

If you're using a block template, the Site Editor enables the user to alter your templates in a variety of ways without having to touch the code.

However, it does not give users the possibility of expanding the functionality of the page. Fortunately, there's a lot of extensions that help you achieve this even if you're just starting out with no any technical expertise.

In this section this section, we'll examine tools that enable you to alter your page's content to include additional capabilities. In order to make it easier for you, we've organized these extensions into three use scenarios: to create advanced products, optimizing product pages, and increasing sales.

Develop products that are innovative

If your online store offers bespoke products or advanced product variants, it might be worth extensions to ease selling these products. Below, we'll explore a few top-notch options.

Advanced Product Variation
advanced product variation extension

It allows you to make variable products by default however the options for these items can be a bit limited.

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

Product Designer for
product designer for

Customers will have the ability to include images, clip art forms, templates, and shapes for your designs. In addition, they'll have the ability to add them into their shopping carts from the design page. Additionally, it creates print-ready images that can aid in the creation of customized products.

Composite Products
composite products with extras

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

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

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

Certain custom-made products need more sources, for example, additional fabrics or wood. If you don't have the appropriate tools, creating a product page for these items can be logistically challenging.

The usual method to market this type of product is to contact customers with a quote. This can significantly delay the sale process. One of the primary reasons shoppers abandon carts is because they are unable to estimate the total price of the order upfront.

Wholesale For

tIQXNrsAlRrBIgLqvPZH

You are able to manage and create different wholesale user roles as well as create pricing based on role. Additionally, it comes with the ability to drag and drop registration forms, so you can create a wholesale application.

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 as well as static images and videos can be helpful providing a 360o view can help bring your products to life.

It also comes with control of navigation and a complete display mode so that your customers can get an overview of your product.

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

The name implies, this extension lets you create a customized product page that guides shoppers straight to buy. They can add or remove products from their cart and make a payment with no having to wait for the new page to load.

This is a great tool for sites with fewer products or landing pages specifically designed to be associated with marketing campaigns.

Tab Manager
Tab manager extension

If you give your clients 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.

Increase product sales

Now, here are some instruments that can assist you to improve your sales through both traditional and more subtle marketing methods.

Sale Flash Pro
Sale Flash Pro extension
Wishlists

Around 40% of online shoppers believe that their shopping experience is better when the retailers had wishlists. Given the number of people who say this, every online store should have added this functionality in their top priorities.

Product Recommendations
recommended products featuring shoes

The program can also generate automated recommendations based upon the customers' recently viewed history. The reports are useful to help you identify your most effective recommendation strategies.

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

The tool lets you group simple as well as variable products. You may also suggest optional products and provide bulk discounts. Plus, you're able to alter the look of your bundles as well as bundled things.

3. Using custom code

You can also alter your page's content using custom code. This method is particularly 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 an extremely risky process. If you don't have the skills to do it, you may end up damaging your site or causing slowdowns.

Then, once you're ready to make your changes live ensure that you use a WordPress parent theme. In this way, your personalizations will not be affected by any updates to your theme's parent.

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

Using custom CSS

If you want to customize the look of your website using code, CSS is the best choice. You can alter elements like fonts, colors hyperlinks, colors, and much more.

There are many methods to accomplish this. Let's take a look.

In the Site Editor

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

adding CSS to the Site Editor

It is possible to place the code inside the Additional CSS box.

In the case of example, if you want to modify 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" by your favorite color code.

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

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

Just make sure to Publish your changes.

It's true that these are just a few simple examples, but the possibilities are limitless. If you're interested in learning more about CSS, look up the WordPress documentation 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 do this you need to go to Appearance - Customize Other CSS.

Advanced product variation extension

CSS works in the same manner here, as it did in the Editor for Sites.

In your Child theme's style.css file

The final place where you could add CSS to WordPress is within 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 update.

Go to Appearance - Theme File Editor.

editing CSS in theme files

As a default, your style.css file should be selected. If not, choose it from the left part of the screen, under the Theme Files menu.

After that, you'll be able to include any CSS at the bottom in the document. You'll just need to update the CSS after you're done.

Using PHP

CSS can be used to alter the look of WordPress However, it won't aid in enhancing the functionality of your pages for selling products.

To do that manually with code, you'll need to make use of PHP. The easiest way to do this is by adding PHP code into your children theme's functions.php file or by using a plugin such as Code Snippets.

code snippets plugin

There are several suggestions you can explore if you're a skilled WordPress designer or user:

hooks (actions and filters)

Here's an example of a 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, $attribute_name ) the $terms_array is an array(); If ( ! empty( $terms ) ) $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 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 features, take a look at the complete listing of hooks.

Template for a global web page

When working with PHP code for , another alternative is to build a custom global template for your product from the ground up. Be aware that this method 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 scenario in this scenario, it might be beneficial to change "Example Template" by "Global Customer-specific Products Page Template" or something comparable.

The template is modeled after the default product page. After that, you are able to modify it as you wish by using web hooks.

Get more sales through a custom product page

The design of your page for products can help you effectively showcase your products. 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 there are several ways to edit the page.

If you are using an unblocking theme, you can use the Site Editor tool to change the appearance of the global template. To enhance the functionality of your site and functionality, install an extension. If you're a seasoned WordPress use, you could decide to make use of CSS or PHP however, this could be a risky process.