Home › Forums › Pro Version › Category.php file can't be found in my theme files in order to generic shortcode › Reply To: Category.php file can't be found in my theme files in order to generic shortcode
Ya, you need to copy the archive.php and then rename it to category.php if you want to keep for categories only. But if you want to do it for all like tags, author then you can just change the archive.php code.
Regarding the code changes, those things depends upon how the theme has coded. Things to remember is you need to remove the wordpress loop code and use our plugin generic shortcode.
So here, you need to change this lines to our shortcode.
<?php if ( have_posts() ) : get_template_part(‘template-parts/content’, ‘layout’); else : get_template_part( ‘template-parts/content’, ‘none’ ); endif; ?>
Hope this helps.