Reply To: Remove Category Page Description From Category Subpages

Home Forums Support Remove Category Page Description From Category Subpages Reply To: Remove Category Page Description From Category Subpages

Home Forums Support Remove Category Page Description From Category Subpages Reply To: Remove Category Page Description From Category Subpages

#211339
Yomi

Hi Tom,

Thanks for that.

Now I have copied the archive.php file over but the problem is where do i find the “category_description() function”?

I have looked in the archive.php but cannot find anything like that.

Below is what I have in the archive.php file



<?php
/**
 * The template for displaying Archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package GeneratePress
 */

get_header(); ?>

	<section id="primary" <?php generate_content_class(); ?>>
		<main id="main" <?php generate_main_class(); ?>>
		<?php do_action('generate_before_main_content'); ?>
		<?php if ( have_posts() ) : ?>

			<?php do_action( 'generate_archive_title' ); ?>
			
			
			<?php /* Start the Loop */ ?>
						
			
			<?php while ( have_posts() ) : the_post(); ?>

				<?php
					/* Include the Post-Format-specific template for the content.
					 * If you want to override this in a child theme, then include a file
					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
					 */
					get_template_part( 'content', get_post_format() );
				?>

			<?php endwhile; ?>

			<?php generate_content_nav( 'nav-below' ); ?>

		<?php else : ?>
		
		<?php get_template_part( 'no-results', 'archive' ); ?>

		<?php endif; ?>
		<?php do_action('generate_after_main_content'); ?>
		</main><!-- #main -->
	</section><!-- #primary -->

<?php 
do_action('generate_sidebars');
get_footer();