WordPress.org

Support

Support » Themes and Templates » [Graphene] Thumbnails

[Graphene] Thumbnails

  • 112Uitgeest
    Member

    @112uitgeest

    Hello,

    How can i fix a post Thumbnail at the Home page? So next were the date is? Now i only get an image when i read the rest of the message.

    My site is:
    http://www.112-uitgeest.nl/wordpress

    So at the frontpage, an thumbnail in the message.

    And i have an other question about the same messages of the homepage. Now you see one text without spacings/enter key. When you press Read More (or Lees Meer) you see a nice text with spacings/enter key.

    How can i change the message so it will be shown also at the homepage with spacings?

    Thanks already!

    http://wordpress.org/extend/themes/graphene/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Josh
    Participant

    @josh401

    How can i fix a post Thumbnail at the Home page?

    You can do this one of two ways:
    1. You can simply insert an image anywhere above where you insert the “read more” link when creating your post.
    2. You can set a featured image for that post.

    How can i change the message so it will be shown also at the homepage with spacings?

    For this, go to Appearance -> Graphene Options -> Display Tab -> Excerpts Display Options

    Enter <br /> (and/or any other tags you want to include) into “Retain these html tags”.

    112Uitgeest
    Member

    @112uitgeest

    Thanks a lot!! It worked!

    Is there maybe an option that only shows 5 lines of text and than read more? The <!–more- -> tag only works with the slider. I disabled the slider. So when i use <!–more– > i don’t see anything to read the rest of the text.

    A message automatically adds Read More. But i have some small text, so you will see the whole text at he homepage. I just want to display like 4 or 5 lines.

    Josh
    Participant

    @josh401

    You’re welcome.

    Is there maybe an option that only shows 5 lines of text and than read more?

    The theme (by default) shows 55 words in an excerpt. You can control this amount by using a custom function in your child theme.

    function custom_excerpt_length($length) {
       return 40; // Change this to whatever you want.
    }
    add_filter('excerpt_length', 'custom_excerpt_length', 20 );

    This will adjust the number or words that shows up in the excerpts.

    Thanks Josh, you pointed me in the right direction. In order to change the excerpt from 55 to 100 I found the code to put it in in the theme-loop.php file.

    I found this line of code:

    function graphene_set_excerpt_length( $length ){
    if ( ! $length ) return;
    global $graphene_settings;
    $graphene_settings[‘excerpt_length’] = $length;
    }

    Then put this right after:

    function custom_excerpt_length($length) {
    return 100; // Change this to whatever you want.
    }
    add_filter(‘excerpt_length’, ‘custom_excerpt_length’, 20 );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Graphene] Thumbnails’ is closed to new replies.