Support » Theme: Perfetta » Static front page

  • theclarityofclothing

    (@theclarityofclothing)


    I would like to show one full blog post on the front page, instead of the summaries of each post. The front page is updated with each new post. If possible, it would be great to have a link to the “next post” at the bottom of each blog post.
    Thank you!!

Viewing 1 replies (of 1 total)
  • Theme Author GavickPro

    (@gavickpro)

    Hello,

    Please change the amount of displayed posts to 1 in the General -> Reading settings.

    And please change in the content.php file the following fragment:

    <?php if ( is_home() || is_search() || is_archive() || is_tag()) : // Only display Excerpts for Search ?>
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    			<a href="<?php echo get_permalink(get_the_ID()); ?>" class="readon"><?php _e('Read more', 'perfetta'); ?></a>
    		</div><!-- .entry-summary -->
    		<?php else : ?>

    to:

    <?php if ( is_home() || is_search() || is_archive() || is_tag()) : // Only display Excerpts for Search ?>
    		<div class="entry-summary">
    			<?php the_content(); ?>
                            <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'perfetta' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
    		</div><!-- .entry-summary -->
    		<?php else : ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Static front page’ is closed to new replies.