WordPress.org

Ready to get started?Download WordPress

Forums

Graphene
[Graphene] Thumbnails (5 posts)

  1. 112Uitgeest
    Member
    Posted 2 years ago #

    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/

  2. 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".

  3. 112Uitgeest
    Member
    Posted 2 years ago #

    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.

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

  5. RoarinRow
    Member
    Posted 1 year ago #

    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 );

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags