WordPress.org

Support

Support » Themes and Templates » A few questions….

A few questions….

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

    @wpyogi

    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.

    notawoodpecker
    Member

    @notawoodpecker

    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
    Forum Moderator

    @wpyogi

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

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

    notawoodpecker
    Member

    @notawoodpecker

    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
    Forum Moderator

    @wpyogi

    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.

    notawoodpecker
    Member

    @notawoodpecker

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

    OY!

    notawoodpecker
    Member

    @notawoodpecker

    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
    Forum Moderator

    @wpyogi

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

    notawoodpecker
    Member

    @notawoodpecker

    I’ll try that.

    The file syntax is right though?

    notawoodpecker
    Member

    @notawoodpecker

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

    notawoodpecker
    Member

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