categories – Add a string to the beginning of a store category title

Question

I want to add to the beginning of the title of my site content in the text store category
Note: It is not WooCommerce and I do not use the plugin at all
Code snippet:

<?php if( is_category( 'shop' ) ) : ?> <h1><title><?php wp_title( ); ?></title></h1> <?php else : ?> <h1><title>مشخصات قیمت و خرید <?php the_title(); ?></title></h1> <?php endif; ?>

I used this code in the header section

0
shah rokh 3 weeks 2021-09-04T04:40:18-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse