• Hi everyone!

    My blog is at http://kimbiep.com/blog and I am using the wp-look Daily Post theme.

    I have two minor issues:

    1. On the main blog page, It doesn’t give a preview, it gives the whole blog post. It has a “Read More” link at the bottom that brings you to the post page where you can leave comments, but the full text is displayed on the homepage. I’d like it to have the read more go to the full text on the post page, not have the full text of every post on the homepage.

    2. On the blog post page, the Title is written in plain text at the top of the page below the header and again in the theme’s title font. How do I eliminate the plain duplicate text?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you’re comfortable with editing some php, I can post the code here, just a few lines in two files need changing. But just a quick question first:

    The only problem I can’t seem to reproduce, is the duplicate title. Are you running the latest version of the theme?

    Thread Starter kimbiep

    (@kimbiep)

    Hi pixel-Jay.

    I’m comfortable using PHP, thank you!

    I am running the most current version of both WordPress and the Daily Post theme.

    For the excerpt:
    Add this at the bottom of your functions.php file, just before the closing php tag:

    if( !function_exists( 'dp_excerpt_length' ) ) {
        function dp_excerpt_length( $length ) {
        	return 45;
        }
        add_filter( 'excerpt_length', 'dp_excerpt_length' );
    }

    45 is the number of words the excerpt_length returns, you can change that to your liking.

    In your content.php file find this line:

    <?php the_content( __( '', 'wplook' )); ?>, it’s right above wp_link_pages, around line 60. Comment it out, then add this <?php the_excerpt(); ?> right underneath it, before wp_link_pages.

    As for the duplicate plain text title, I would suggest the same as esmi. I’m using the older version of this theme for a friend’s blog, and it’s fine, I checked the updated version, no problems there either.

    Hope this helps

    Thread Starter kimbiep

    (@kimbiep)

    I added the php you provided, but all it did was print each article a second time when the first was finished and then provide the […] and the read more link

    Also– I found out that the second title was because of Yoast’s SEO plugin, so I deactivated it and now it’s working fine.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Theme not showing snippet on homepage’ is closed to new replies.