Blog Thumbnail and Excerpt

Viewing 3 posts - 1 through 3 (of 3 total)
  • #22792
    leandrorocha
    Participant

    Hello,

    This is a awesome theme, but I would like to make some changes. I am a bit familiar with wordpress, however not with the framework that is used in this theme.

    Firstly I feel that some areas are a bit empty and I would like to add the blog featured image in the post loop (and also in categories). I attached a screenshot to better understanding.

    Another point is that I would like to increase the number of letters in the post except.

    I usually could solve this problem by myself, but is my first time working with this framework.

    Here is the screenshot: https://drive.google.com/open?id=0B1Vh7_gHrCMHV3ZseEg1ZmltZG8

    Thanks

    #22795
    Daniel Tara
    Keymaster

    Add this code in your child theme’s functions.php file:

    /* Insert thumbnail before post title */
    function graceunderpressure_child_wp_actions() {
        if( is_home() && 'list' == get_theme_mod( 'blog_design' ) ) {
            remove_action( 'enlightenment_entry_header', 'the_title', 10, 2 );
    
            add_action( 'enlightenment_entry_header', 'the_post_thumbnail' );
            add_action( 'enlightenment_entry_header', 'the_title', 10, 2 );
        }
    }
    add_action( 'wp', 'graceunderpressure_child_wp_actions', 22 );
    
    /* Change post excerpt length */
    function graceunderpressure_excerpt_length( $length ) {
    	return 55; // Replace with desired length
    }
    add_filter( 'excerpt_length', 'graceunderpressure_excerpt_length', 1000 );

    In the future please direct you questions here. I no longer own this theme and this subforum will soon be deleted.

    #23139
    bcp
    Participant

    This unfortunately did not work for me. After some hours I found out that there is actually support for just showing the thumbnail and the excerpt. I just posted the solution here. good luck.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.