WordPress.org

Forums

Twenty Ten
A few questions.... (12 posts)

  1. notawoodpecker
    Member
    Posted 2 years ago #

    Is it possible to reduce the number of words in each post summary that displays on the main page? If so, how?

    Also need to look at the Fonts for Post Body, Post Title and the widgets. I've dug up a few old threads to see the coding, but I'm not sure what to put in the child theme, or where.

    http://wordpress.org/support/topic/changing-fonts-in-twenty-ten-template?replies=3

    http://wordpress.org/support/topic/theme-twenty-ten-sidebar-fonts?replies=7

    I can see the elements, but I'm not sure about the order in which they need to be placed or if blank lines between matter.

    http://thetarnishedbadge.central-us.net/wordpress/

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Try these in your child theme style.css:

    Post body:

    #content p {
       styles here;
    }

    Post title:

    #content .entry-title {
       styles here;
    }

    Which part of the widgets are you wanting to change?

    Are you using Firebug to look at the CSS? It's really a great help for these kinds of things. In general, the order of the CSS should not matter so long as your selectors are specific enough.

  3. notawoodpecker
    Member
    Posted 2 years ago #

    In general, the order of the CSS should not matter so long as your selectors are specific enough.

    OK, that's the part I wasn't too sure about.

    What about cutting the summary word count on the front page?

  4. WPyogi
    Forum Moderator
    Posted 2 years ago #

    It's in this thread -- see the post by Digital Raindrops:

    http://wordpress.org/support/topic/changing-excerpt-length?replies=20

  5. notawoodpecker
    Member
    Posted 2 years ago #

    Well, I see the code, but I have no idea what needs to be modified:

    remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );

    function my_twentyten_excerpt_length( $length ) {
    return 50;
    }
    add_filter( 'excerpt_length', 'my_twentyten_excerpt_length' );

    Leave it intact except for the '50'?

  6. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Yes, put that in your child theme functions.php file (you may need to create one) and change the 50 to whatever you want it to be.

  7. notawoodpecker
    Member
    Posted 2 years ago #

    Well, now see, I was going to try and put it in the stylesheet with the other stuff.

    OY!

  8. notawoodpecker
    Member
    Posted 2 years ago #

    Created the file and this is what I put in there but I don't see any changes to the displayed word count.

    <?php
    remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    
    function my_twentyten_excerpt_length( $length ) {
    return 25;
    }
    add_filter( 'excerpt_length', 'my_twentyten_excerpt_length' );
    ?>
  9. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Make sure you've cleared any and all caches - site, server, browser.

  10. notawoodpecker
    Member
    Posted 2 years ago #

    I'll try that.

    The file syntax is right though?

  11. notawoodpecker
    Member
    Posted 2 years ago #

    Maybe I'm missing something. This seems to have taken effect on the monthly archive pages, but not the main posts page.

  12. notawoodpecker
    Member
    Posted 2 years ago #

    Bumping again....

    Word count on the main page hasn't changed. I've searched other threads and tried other options, but with no results.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.