Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #15002
    lew1s
    Member

    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

    http://workplacesolutions.ie/category/arbitrationadr/

    #15008
    Sakin
    Keymaster

    @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">&rarr;</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">&rarr;</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(); ?> -->
    #15009
    lew1s
    Member

    @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.

    #15010
    Sakin
    Keymaster

    @lew1s: you can add following CSS ot hide it.
    .page .entry-header, .single .entry-header, #main-slider .entry-header { display: none; }

    #15011
    lew1s
    Member

    @Sakin thanks very much ! you are the man ! 🙂

    #15108
    lew1s
    Member

    Hi 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 much

    #15110
    Sakin
    Keymaster

    @lew1s: I am bit confused what you mean. Can you explain please.

    #15112
    lew1s
    Member

    on 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

    #15125
    Sakin
    Keymaster

    @@lew1s: It’s redirection issues. Have you use any redirection plugin or .htaccess configuration.

    #15315
    lew1s
    Member

    ok 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

    #15316
    Sakin
    Keymaster

    @lew1s: You must have missed setting in that plugin. You can add question in that plugin support forum.

    #15417
    lew1s
    Member

    Hi @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 much

    #15441
    Sakin
    Keymaster

    @lew1s: In your child theme content.php file. Find the code if ( is_category() ) : and replace with if ( is_category() || is_date() ) :

    #15446
    lew1s
    Member

    thanks !

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