Support » Theme: Social Magazine » how to make links from categories have home-page like article feed tabs?

  • Resolved sanukee

    (@sanukee)


    So instead of categories linking to detail of articles in that category, how to make the category link to also have feed tabs like that of home page?
    (newbie here)

    Thank you for help,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author ThemesMatic

    (@themesmatic)

    Category links are linked to posts within that category for SEO and logical reasons.
    I’m looking at my theme now and I have no idea what you mean by “feed tabs”.
    If you could elaborate maybe I could help.

    TM thanks for the reply. As I was reading rest of the questions in the forum, a similar solution was posted.
    it’s this one:
    =================
    find
    the_content(__(‘Read more of this article »’, ‘social-magazine’)); ?>
    change it to
    the_excerpt(); ?>
    ==================
    I meant the “feed tabs” to be those divs for articles (2 vertical divs in each row in homepage).

    With the solution, I had 1 horizontal div in each row. However I would like to have 2 divs like that of home page. I tried searching for those divs identifiers/class so that I could change its col, could not find in style.css file.

    I would like to know how to do it.
    thanks!

    Theme Author ThemesMatic

    (@themesmatic)

    I finally figured out what your trying to say…
    You want the posts on category pages to be displayed the same way they are on the homepage.

    Good news, that’s a real easy thing to do.

    Open category.php in an editor.

    in category.php find this code:

    <?php
    		// Check if there are any posts to display
    		if ( have_posts() ) : ?>
    
    		<?php
    
    		// The Loop
    		while ( have_posts() ) : the_post();
    
    		get_template_part( 'content');
    
    		endwhile; ?>

    and replace it with this code:

    <div class="row">
    
    			<?php if (have_posts()) : ?>
    			<?php while (have_posts()) : the_post(); ?>
    			    <div class="post blog-block">
    					<h2 id="post-<?php the_ID(); ?>" <?php $classes = array('align-left','social-magazine-one-post-link',); post_class( $classes ); ?>><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
    						<?php get_template_part( 'post', 'date' ); ?>
    
    						<?php if ( has_post_thumbnail() ) { the_post_thumbnail( array(300, 300) ); } ?>
    
    						<?php get_template_part( 'post','meta' ); ?>
    
    						<?php the_excerpt(); ?>
    							<p class="posted-in">
    								<small>
    								<?php if (has_category()) { ?><?php esc_attr_e('Posted in ', 'social-magazine' ); ?><?php the_category(', ') ?><?php } ?>
    								<?php the_tags(__('Tagged with: ','social-magazine')); ?>
    								</small>
    							</p>
    				</div><!-- /blog-block -->
    
    			<?php endwhile; ?>
    
    			</div>

    save it and your done. That’s it 🙂

    Theme Author ThemesMatic

    (@themesmatic)

    After you’ve made the changes I gave you above,
    if you could write a review of the social magazine theme that would be awesome.
    Thanks 🙂

    Theme Author ThemesMatic

    (@themesmatic)

    Resolved 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to make links from categories have home-page like article feed tabs?’ is closed to new replies.