Support » Fixing WordPress » Post in Categories

  • I have a blog going using the category events. I have Events in my top menu in the site that takes you to the blog. Once you arrive on the landing page you see the title Post in Category: Events

    Is it possible to just have the title: Events
    and not Posts in Category: Events

    http://francesperkinscenter.org/?cat=3

Viewing 4 replies - 1 through 4 (of 4 total)
  • That depend with your theme.

    In almost WordPress theme, there is a category.php file to display category archive.

    First make a child theme for your theme & then copy that category.php file from parent theme in to child theme.

    Then edit header section of category.php file in your child theme.

    this is the code for category.php. Where do I make the edit?

    <?php

    get_header();

    $cat_layout = axiom_option(‘blog_category_page_layout’) == ‘medium’?’land’:”;
    $cat_sidebar = axiom_option(‘blog_category_sidebar_position’) == ”?’right-sidebar’:axiom_option(‘blog_category_sidebar_position’);
    ?>
    <div id=”main” class=”list-post <?php echo $cat_layout.’ ‘.$cat_sidebar; ?> “>
    <div class=”wrapper fold clearfix”>

    <section id=”primary” >
    <div class=”content” role=”main” >

    <?php get_template_part(‘inc/loop’, “post” ); ?>

    </div><!– end content –>
    </section><!– end primary –>

    <?php get_sidebar(); ?>

    </div>
    </div><!– end main –>

    <?php get_sidebar(‘footer’); ?>
    <?php get_footer(); ?>

    Hi reddoormedia ,
    In all WordPress theme, there is a category.php file to display category archive.so can edit or inspect that file or your page i.e http://francesperkinscenter.org/?cat=3 and remove Post in category & save that file you can get your answer

    In this file you have call only function you need to check the where the post come from. means which function is that call your post. i think
    <?php get_template_part(‘inc/loop’, “post” ); ?>
    u need to check out once . or in your page its under the class
    <Body class=”category-events”>
    — here is some code —
    then <h1 class=”page-title” itemprop=”headline”>
    //You need to remove this Posts in category : Events
    </body >

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post in Categories’ is closed to new replies.