• Resolved pressplay21

    (@pressplay21)


    I really like your theme. I think it’s very simple and clean. How can I show the full content of posts in the main page instead of just the titles?

Viewing 4 replies - 1 through 4 (of 4 total)
  • To show full contents on the posts you need to replace the following code
    Go to Appearance > Editor, find Content.php from the Template found on the right section of the page.
    Find the following line

    <?php echo wp_filter_nohtml_kses( get_the_excerpt() ); ?>

    Replace the above line with the following

    <?php echo wp_filter_nohtml_kses( the_content() ); ?>

    You will get the full content of posts on the main page.

    Please use a child theme and copy the content.php to your child theme’s template-parts folder to edit your themes files.

    Hope it helps.

    Theme Author monkey-themes

    (@monkey-themes)

    If you want to see a single page go to here:
    BACKEND > Appearance > Customize > Static Front Page >
    In Front page displays selects a static page.
    ———————————
    If you want to change the list, go to Appearance > Editor, find Content.php from the Template.
    Find the following line
    <?php echo wp_filter_nohtml_kses( get_the_excerpt() ); ?>
    Replace the above line with the following
    <?php echo wp_filter_nohtml_kses( get_the_content() ); ?>
    —————————–
    With HTML content, replace so.
    Find the following lines

    <?php if ( is_single() ) : ?>
                <?php the_content(); ?>
            <?php else: ?>
                <?php echo wp_filter_nohtml_kses( get_the_excerpt() ); ?>
            <?php endif; ?>

    Remove the above lines and replace with the following
    <?php the_content(); ?>

    Thread Starter pressplay21

    (@pressplay21)

    Thank you! I will give it a try.

    Theme Author monkey-themes

    (@monkey-themes)

    😉

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Full content view in front page?’ is closed to new replies.