Support » Theme: Twenty Ten » A few questions….

Viewing 11 replies - 1 through 11 (of 11 total)
  • WPyogi

    (@wpyogi)

    Forum Moderator

    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.

    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?

    WPyogi

    (@wpyogi)

    Forum Moderator

    It’s in this thread — see the post by Digital Raindrops:

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

    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’?

    WPyogi

    (@wpyogi)

    Forum Moderator

    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.

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

    OY!

    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' );
    ?>
    WPyogi

    (@wpyogi)

    Forum Moderator

    Make sure you’ve cleared any and all caches – site, server, browser.

    I’ll try that.

    The file syntax is right though?

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

    notawoodpecker

    (@notawoodpecker)

    Bumping again….

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘A few questions….’ is closed to new replies.