Tagged: x
-
AuthorPosts
-
August 18, 2016 at 11:39 am #1137074
mogul708ParticipantHow do I create a category archive page template of pages/posts without the author and date?
See image attached.Thanks.
August 18, 2016 at 12:31 pm #1137168
RahulModeratorHey 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!
August 18, 2016 at 12:56 pm #1137210
mogul708ParticipantThanks 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”.
August 18, 2016 at 5:59 pm #1137584
RadModeratorHi 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
Thanks!
August 18, 2016 at 8:07 pm #1137763
mogul708ParticipantThis reply has been marked as private.August 19, 2016 at 12:06 am #1137944
Rue NelModeratorHello 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1137074 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
