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


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

shah rokh 1 year 2021-09-04T04:40:18-05:00 0 Answers 0 views 0

Leave an answer