• athenanikolis

    (@athenanikolis)


    For each post, how can I just have the beginning only and the option of read more?

    Also, can I change the font of my title? Eg. make it in a cursive font?

    thank you

Viewing 1 replies (of 1 total)
  • WEN Solutions

    (@wen-solutions)

    Hi athenanikolis

    1. For this you need to create child theme.Reference Here forChild theme
    2. Now after successfully creating and activating child theme you will find content.php file in main theme’s folder.
    3. Now copy and paste that file in child theme folder.
    4. Now you need to work in child theme folder.
    5. Now in content.php in child theme you will see below part of code.

    <?php the_content( __( 'Read More', 'thinker' ) ); ?>

    6. Now change this to:

    <?php
                    if(is_home() || is_front_page()){
                        the_excerpt();
                    }
                    else{
                      the_content( __( 'Read More', 'thinker' ) );
                    }
                 ?>

    7. This will pull excerpt of the content.Now if you need to change the length of the excerpt the you need to add below code in functions.php of child theme.

    function custom_excerpt_length( $length ) {
        return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    Hope this will solve your issue.

    Best Regards!!!

Viewing 1 replies (of 1 total)
  • The topic ‘Length of posts’ is closed to new replies.