• Resolved decoymer

    (@decoymer)


    I’m not quite sure how to go about doing this. What I want to do is get rid of everything that shows up when you’re looking in the category view, except the title of the post that is. I would also like to change the font size of the title as well as how many posts appear on one page in the category.

    I already copied the default.css into the bottom the style.css, although I do not see anything there that could help me with this big problem of mine.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter decoymer

    (@decoymer)

    For thematic theme*

    Could try coping the theme parent category.php to your child theme, and then in that template delete the template tag, the_content().

    Thread Starter decoymer

    (@decoymer)

    I’ve copied the category.php over to the child theme though I do not know where to delete “the_content()”.

    This is code which is in the category.php:

    <?php
    
        // calling the header.php
        get_header();
    
        // action hook for placing content above #container
        thematic_abovecontainer();
    
    ?>
    
    	<div id="container">
    		<div id="content">
    
                <?php
    
                // displays the page title
                thematic_page_title();
    
                // create the navigation above the content
                thematic_navigation_above();
    
                // action hook for placing content above the category loop
                thematic_above_categoryloop();			
    
                // action hook creating the category loop
                thematic_categoryloop();
    
                // action hook for placing content below the category loop
                thematic_below_categoryloop();			
    
                // create the navigation below the content
                thematic_navigation_below();
    
                ?>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    
    <?php 
    
        // action hook for placing content below #container
        //thematic_belowcontainer();
    
        // calling the standard sidebar
        thematic_sidebar();
    
        // calling footer.php
        get_footer();
    
    ?>

    Probably could just delete

    thematic_categoryloop();

    Thread Starter decoymer

    (@decoymer)

    Ah just tried that and it removes everything off the category view including the post titles sadly.

    Oops, see that. For now at line 261 in thematic/extensions/content-extension.php change to <?php // thematic_content(); ?>

    Thread Starter decoymer

    (@decoymer)

    Okay did that, now what?

    Seems the better way is to filter that via a function like this in your functions.php

    function no_content_for_cat_templates($content) {
      if( is_category() ) {
        $content = 'none';  //none, excerpt, or full
      }
      return $content;
    }
    add_filter('thematic_content', 'no_content_for_cat_templates');
    Thread Starter decoymer

    (@decoymer)

    Okay, well when I add that function to the very bottom of the functions.php in my child theme it brings up this error:

    function no_content_for_cat_templates($content) { if( is_category() ) { $content = 'none'; //none, excerpt, or full } return $content; } add_filter('thematic_content', 'no_content_for_cat_templates');
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/decafmer/public_html/wp-content/themes/BunchofAnime/functions.php:129) in /home/decafmer/public_html/wp-content/plugins/si-contact-form/si-contact-form.php on line 2160

    Start with a fresh functions.php and make sure that code is inside the

    <?php

    and

    ?>

    Thread Starter decoymer

    (@decoymer)

    Ah that was the problem, didn’t put them in those tags. Now that I put that code in without any errors now what?

    Well that should stop the full post content from displaying on category archive views. Am I missing something?

    Thread Starter decoymer

    (@decoymer)

    The category archive view originally doesn’t display what’s inside of it, but shows information about it like this:

    Post Title 1
    By Author | Published: March 22, 2010 | Edit
    Posted in Post Title 1 | Comments closed | Edit

    What I would like it look like is:

    Post Title 1

    Without it having the other information shown.

    Okay–a bit more for your functions.php file

    function no_postmeta_for_cat_templates($postmeta) {
      if( is_category() ) {
        $postmeta='';
      }
      return $postmeta;
    }
    add_filter('thematic_postheader_postmeta', 'no_postmeta_for_cat_templates');
    
    function no_postfooter_for_cat_templates($postfooter) {
      if( is_category() ) {
        $postfooter='';
      }
      return $postfooter;
    }
    add_filter('thematic_postfooter', 'no_postfooter_for_cat_templates');

    Thread Starter decoymer

    (@decoymer)

    Ah brilliant!! That bit of code worked perfectly. Thanks!

    Now is there any way to alter the spacing in between titles and the amount of titles shown on a single page?

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Changing the category view for Thematic theme’ is closed to new replies.