ThemeShaper Forums » Thematic


Category template

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

    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?


    Posted 10 years ago #
  2. Goran

  3. elderberry

    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 10 years ago #
  4. Valeriek


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


    Posted 10 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 10 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:


    <?php get_header(); ?>
    	<div id="homecontent-top">
            <img src="" 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')); ?>
    		<?php endwhile; endif; ?>
    	<?php edit_post_link('Edit', '<p>', '</p>'); ?>
         <div id="featured-rightcol">
          <?php include("sidebar-forget-me-not.php");  ?>
    <div class="clear"></div>
    <?php get_footer(); ?>
    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.