• Hi,
    First of all thanks for the great theme.Only thing I cannot figure out is to have my home page in similar format as you can see on the website below:
    geekfill dot com
    I want to display image instead of thumbnail and have some text under the image with “read more” button or text.
    Thank you in advance.
    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Mark. To set the default blog list to a single column of posts, try adding this css:

    .home .post-list .post {
      width: 100%;
    }

    You can add a “Read more” to the post excerpt by adding this function to your child theme functions.php file:

    /* override default theme excerpt "more" indicator */
    function alx_excerpt_more( $more ) {
      return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('...Read more ->', 'your-text-domain') . '</a>';
    }

    You can change ‘…Read more ->’ to whatever you want to display. The above function will work provided (1) the post doesn’t have a manually-entered Excerpt, and (2) the post content doesn’t contain a “More” tag. The theme will read the post content, extract the number of words set in Theme Options > Blog > Excerpt Length, and then append “…Read more ->” to the end. The “Read more” will link to the full post. Let me know if you have any questions.

    Thread Starter marknk

    (@marknk)

    .home .post-list .post {
      width: 100%;
    }

    Hi,
    Tried it but the image wont show up.Thanks

    Can you post a link to your site that has the css and function code installed? Thanks.

    Thread Starter marknk

    (@marknk)

    Currently on my pc (xampp).Will upload the site soon and let you know.Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image on top and axcerpt under image on home page’ is closed to new replies.