WooCommerce Page Templates
-
Hi,
I have done lot of researching but no luck so far. The question / problem is:
Example, if you choose on the Shop page’s Page Attributes your Template file, like “my-custom-template” it do not take any effect. I can’t do any if statement checks which template file user is chosen or anything.
get_page_template();
echo out alwaysurl/to/page.php
even ifmy-custom-template
is chosen in the Shop page’s Page Attributes.So, all what I would like to do is:
1) Make custom template file likecustomtemplate.php
2) Named itTemplate Name: Custom Template
3) Make if statement inproduct-archive.php
file,if(is_page_template('customtemplate.php')){ echo 'Do something cool'; }
Thank you.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WooCommerce Page Templates’ is closed to new replies.