Website Building » WooCommerce » How Do I Edit a WooCommerce Template in Pages?

How Do I Edit a WooCommerce Template in Pages?

Last updated on October 1, 2022 @ 5:25 am

When you are creating a website, one of the first things you need to do is choose a WooCommerce template. This will determine the overall look and feel of your site, as well as how easy it is to navigate.

There are a few things you need to keep in mind when choosing a WooCommerce template:

– The template should be compatible with the WooCommerce plugin.
– The template should be responsive, so it looks good on all devices.
– The template should be easy to customize, so you can change colors, fonts, and other elements to match your brand.

Once you have chosen a template, the next step is to edit it to match your needs. Fortunately, most WooCommerce templates come with built-in editing tools that make this process easy. However, if you want more control over the design of your site, you may need to edit the template files directly.

Here are a few tips for editing WooCommerce templates:

– Use a child theme if possible. This will allow you to make changes to the template without affecting the original files. – If you are editing template files directly, make sure to create a backup first. This way, you can restore the original files if something goes wrong.

– Be careful when editing code. A small mistake can break your entire site. If possible, work with a developer who can help you make changes safely.

Editing a WooCommerce template is a great way to customize your site and make it look exactly how you want. Just be sure to take your time and back up your files before making any changes.

How Do I Edit a WooCommerce Template in Pages?

When you want full control over your website’s design, it’s necessary to learn how to edit HTML and CSS code. This guide will walk through how to edit both the HTML and CSS code for a WooCommerce Template in Pages.

Before You Begin

Before diving into this guide, there are two key things that need to happen:

  1. You must have chosen a compatible WordPress Theme.
  2. You must have installed and activated the WooCommerce plugin.

If both of those boxes have been checked off, then let’s get started!

How To Edit WooCommerce Template In Pages

1. To start customizing your WooCommerce shop pages using HTML and CSS code in WordPress pages, create or edit an existing page in WordPress and click on the ‘Text’ tab next to the ‘Visual’ tab.

Edit Page Text Tab

2. On the Text tab, you will see the page’s content displayed in HTML code.

If there is no content on the page yet then simply add some content like we did below.
<h2>This Is My Shop Page</h2> <p>Here is some sample text for my shop page…</p>

Once done click on the ‘Update’ or ‘Publish’ button depending on whether you were editing an existing page or creating a new one.

Edit Page Text Tab

3. Now let’s say we wanted our shop page title to appear in blue color instead of default black.
We would simply locate the following line of code in our editor:
<h2>This Is My Shop Page<h2>
And then we would add a ‘style’ attribute like this:
<h2 style=”color:blue;”>This Is My Shop Page<h2>
After making this change our sample title would now appear like this:

This Is My Shop Page


You can use this same method to style other elements on your shop pages like paragraphs (

) or list items (

  • ) etc.

    For example, if we wanted all our shop links () tags to appear underlined then we would simply add this line of CSS code under our custom CSS box below our editor:
    .post p a { text-decoration:underline;}

  • Drew Clemente

    Drew Clemente

    Devops & Sysadmin engineer. I basically build infrastructure online.