Changes on archive-product.php doesn't work

I'm trying to customize the standard woocommerce theme and so far that has worked well. I copied all template files from /plugins/woocommerce/templates to /mytheme/woocommerce and customized the files.

But when i'm change something in archive-product.php nothing happens? I even tried to customize this in the core files (/plugins/woocommerce/templates/archive-product.php) but i doesn't work.

I want to change the class of the h1 heading: <h1 class="page-title"><?php woocommerce_page_title(); ?></h1>.

So i looked up all woocommerce template files, the class page-title occurs only in this one file (to prevent editing the wrong file).

Edit:

In detail, i want to customize the theme used in this path: http://example.com/product-category/mycategory

Answers


Seems this is STILL an issue in Woocommerce. For anyone landing here, the following solution was working for me as of version 2.1.6.

Apparently the problem is due to the function woocommerce_content() outputting the wrong page for archive content.

I used the following to get around it:

replace woocommerce_content() in woocommerce.php with:

if ( is_singular( 'product' ) ) {
 woocommerce_content();
}else{
//For ANY product archive.
//Product taxonomy, product search or /shop landing
 woocommerce_get_template( 'archive-product.php' );
}

Credit: found the solution here


Need Your Help

Object oriented comunication via TCP in C#

c# oop design-patterns design tcp

I'm developing a simple application that will receive data from a hardware via TCP.

OSX Error installing subversion via macports

osx svn macports

I'm attempting to install subversion 1.7.2 ( upgrading from default Lion version, 1.6? ).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.