ThemeShaper Forums » Thematic

[closed]

Category template

(6 posts)
  • Started 3 years ago by Valeriek
  • Latest reply from lastraw
  • This topic is not resolved
  1. Valeriek
    Member

    How can I make a new category template?

    I am unable to find how to make another category template that would be for articles. Which file should I change and what code is about the gallery pic? so that I can remove it for the articles?

    TY!

    Posted 3 years ago #
  2. Goran
    Member

  3. elderberry
    Member

    A way that works for non-programmers is to use the Page Links To plugin.
    1) Show your categories in a sidebar widget.
    2) Click on the category you want to display on a page.
    3) Copy the url.
    4) Create the page where you plan to display the selected category.
    5) Paste the url into the Page Links To area.

    Posted 3 years ago #
  4. Valeriek
    Member

    Hi,

    TY for your answers.
    I have created category templates several times on other websites. But with this theme that has a child, I cannot seem to be able to find where the layout of the category is... For example I can't find where the code says to show the thumbnail....

    TY.

    Posted 3 years ago #
  5. library/extensions/content-extensions.php look for the thematic_content() function... that is the one that adds the thumbnail to the excerpts.

    you can filter either thematic_post or i think there is a switch that turns off the thumbs

    Posted 3 years ago #
  6. I've never been able to make the category hierarchy work, it always seems to default to single.php / index.php instead of category-slug.php or category-id.php. Usually I'm able to work around it by using a template, but this time I think I need to figure it out.

    It's local so I can't post a link.

    Here is the file:

    category-forget-me-not.php

    <?php get_header(); ?>
    
    	<div id="homecontent-top">
    
            <img src="http://www.aidsmemorial.org/wp-content/uploads/2009/06/home1.jpg" alt="homepic" width="960" height="400" border="0"/>
    </div><div id="featured-content">
         <div id="featured-leftcol">
         <div class="featured_post">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    
    		<h2><?php the_title(); ?></h2>
    			<div class="entry">
     <?php the_content("<p class=\"serif\">" . __('Read the rest of this page', 'Grove') ." &raquo;</p>"); ?>
    
    				<?php wp_link_pages("<p><strong>" . __('Pages', 'Grove') . ":</strong>", '</p>', __('number','Grove')); ?>
    
    </div>
    			</div>
    		</div>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit', '<p>', '</p>'); ?>
    	</div>
    
         <div id="featured-rightcol">
          <?php include("sidebar-forget-me-not.php");  ?>
          </div>
    
    <div class="clear"></div>
    <?php get_footer(); ?>
    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.