Add copy to individual taxonomy and term archive page

Question

I have a product attribute setup as ‘style’ and a term of ‘illustrative’, so I wanted to add some seo copy to the bottom of the illustrative archive page of my woocommerce shop using the hook ‘woocommerce_after_main_content’

I thought this code would do it but sadly no :'( Any help would be amazing

if ( is_tax( 'pa_style', 'Illustrative', 1 ) ) {
add_action( 'woocommerce_after_main_content', 'illustrative_copy_after_main_content',99);
function illustrative_copy_after_main_content(){
    echo '<p>testesttestest</p>';
}
```taxonomy
0
, , , , Liep___ 7 months 0 Answers 101 views 0

Leave an answer