Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1137074
    mogul708
    Participant

    How do I create a category archive page template of pages/posts without the author and date?
    See image attached.

    Thanks.

    #1137168
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Follow this thread now :

    https://community.theme.co/forums/topic/remove-date-and-author-from-category-archive/

    Hope this helps!

    #1137210
    mogul708
    Participant

    Thanks for the response but a css solution wasn’t what I was looking for.
    What I want to do is create a custom category page that pulls in the posts from a certain category without the date, author.
    Looking to duplicate this file, make a few modifications that not include the author,date or other items I dont need and rename it.
    I am using the integrity stack.

    Where is the category archive template? Im looking in …/themes/x/framework/views/integrity and there doesnt seem to be anything that relates to the category archive page. wp-index.php?

    Can you give me the file path to the files that are involved and need to be modified, duplicated?

    There’s another index file that is “silence is golden”.

    #1137584
    Rad
    Moderator

    Hi there,

    Category template is index.php, all archive including blog home page uses that template. But it doesn’t limit you to create your own archive template. Please check this related threads

    https://community.theme.co/forums/topic/need-category-post-to-display-full-content-not-excerpt/?replyto=142647#post-293843

    Thanks!

    #1137763
    mogul708
    Participant
    This reply has been marked as private.
    #1137944
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! Because what you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once you have your child theme active and ready, please follow the following steps below:
    1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
    2] Insert the following code into that new file

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/_CONTENT-POST-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Standard <header> output for various posts.
    // =============================================================================
    
    ?>
    
    <header class="entry-header">
      <?php if ( is_single() ) : ?>
      <h1 class="entry-title"><?php the_title(); ?></h1>
      <?php else : ?>
      <h2 class="entry-title">
        <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
      </h2>
      <?php endif; ?>
    
      <?php 
        // check if the Category is Programs or not
        if ( ! is_category('programs') ) : ?>
    
        <?php x_integrity_entry_meta(); ?>
    
      <?php endif; ?>
    </header>

    3] Save the file named as _content-post-header.php
    4] Upload this file to your server in the child theme’s folder
    wp-content/themes/x-child/framework/views/integrity/

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1137074 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>