- This topic has 13 replies, 2 voices, and was last updated 11 years, 2 months ago by lew1s.
-
AuthorPosts
-
September 24, 2013 at 1:25 pm #15002lew1sMember
Hi,
I am using catch everest theme but want to display just post tiles in categories.
I did this but now the categories are empty
http://catchthemes.com/support-forum/topic/what-changes-needed-to-display-only-post-titles/
this is my website . thanks
September 24, 2013 at 2:12 pm #15008SakinKeymaster@lew1s: When I check in your category, I see that you have hidden the title with css.
.entry-title { display: none; }
The best option is to copy content.php file in your child theme and edit it. So, it will be like this
<?php /** * The default template for displaying content * * @package Catch Themes * @subpackage Catch Everest * @since Catch Everest 1.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> <div class="featured-post"><?php _e( 'Featured post', 'catcheverest' ); ?></div> <?php endif; ?> <?php if( has_post_thumbnail() ):?> <figure class="featured-image"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'catcheverest' ), the_title_attribute( 'echo=0' ) ) ); ?>"> <?php the_post_thumbnail( 'featured' ); ?> </a> </figure> <?php endif; ?> <div class="entry-container"> <header class="entry-header"> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'catcheverest' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php catcheverest_header_meta(); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header --> <?php if ( is_category() ) : return false; else : // Getting data from Theme Options global $catcheverest_options_settings; $options = $catcheverest_options_settings; $current_content_layout = $options['content_layout']; $catcheverest_excerpt = get_the_excerpt(); if ( is_search() || ( !is_single() && $current_content_layout=='excerpt' && !empty( $catcheverest_excerpt ) ) ) : ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div><!-- .entry-summary --> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'catcheverest' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'catcheverest' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-meta"> <?php catcheverest_footer_meta(); ?> <?php if ( comments_open() && ! post_password_required() ) : ?> <span class="sep"> | </span> <span class="comments-link"> <?php comments_popup_link(__('Leave a reply', 'catcheverest'), __('1 Reply', 'catcheverest'), __('% Replies', 'catcheverest')); ?> </span> <?php endif; ?> <?php edit_post_link( __( 'Edit', 'catcheverest' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?> <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> <div class="author-info"> <div class="author-avatar"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'catcheverest_author_bio_avatar_size', 68 ) ); ?> </div><!-- .author-avatar --> <div class="author-description"> <h2><?php printf( __( 'About %s', 'catcheverest' ), get_the_author() ); ?></h2> <p><?php the_author_meta( 'description' ); ?></p> <div class="author-link"> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'catcheverest' ), get_the_author() ); ?> </a> </div><!-- .author-link --> </div><!-- .author-description --> </div><!-- .author-info --> <?php endif; ?> </footer><!-- .entry-meta --> <?php endif; //Category empty loop ?> </div><!-- .entry-container --> </article><!-- #post-<?php the_ID(); ?> -->
September 24, 2013 at 2:45 pm #15009lew1sMember@Sakin thanks for your quick solution! great it works!
but now would like to hide entry-title for slider,pages,posts. Just show the entry tile in categories.thanks very much ! really appreciate.
September 24, 2013 at 2:56 pm #15010SakinKeymaster@lew1s: you can add following CSS ot hide it.
.page .entry-header, .single .entry-header, #main-slider .entry-header { display: none; }
September 24, 2013 at 3:02 pm #15011lew1sMember@Sakin thanks very much ! you are the man ! 🙂
September 26, 2013 at 4:10 pm #15108lew1sMemberHi Sakin,
One more thing. The archives doesnt work at all. I tried many plugins but just redirect to the home page.
You can check on the left side widget . there is calendar and try to pick some date.
Can you please help? Thank you very muchSeptember 26, 2013 at 6:32 pm #15110September 26, 2013 at 6:35 pm #15112lew1sMemberon the left side is widget calendar with archives, but when you click on any date its going nowhere.
i tried different widget and its same. so the problem must be in the catch theme
September 26, 2013 at 9:51 pm #15125SakinKeymaster@@lew1s: It’s redirection issues. Have you use any redirection plugin or .htaccess configuration.
September 30, 2013 at 2:01 pm #15315lew1sMemberok the problem is in Yoast SEO. WHen I disbable it everything works fine. I tried uncheck some tick boxes in Archives but still the same. What can be the problem in Yoast SEO? thanks
September 30, 2013 at 2:09 pm #15316SakinKeymaster@lew1s: You must have missed setting in that plugin. You can add question in that plugin support forum.
October 2, 2013 at 4:33 pm #15417lew1sMemberHi @Sakin,
Ok , I reset the plugin to default and now the archives working fine. But how to show just the titles like you showed me on categories.
can you please help me ? thanks very muchOctober 2, 2013 at 9:15 pm #15441SakinKeymaster@lew1s: In your child theme content.php file. Find the code
if ( is_category() ) :
and replace withif ( is_category() || is_date() ) :
October 2, 2013 at 9:36 pm #15446lew1sMemberthanks !
-
AuthorPosts
- The topic ‘Post Title in Categories’ is closed to new replies.