Recent Posts "Read More"

Discussion in 'RoadFighter WordPress Theme' started by sotb0rlando, Mar 31, 2014.

  1. sotb0rlando

    sotb0rlando Member

    Joined:
    Dec 9, 2012
    Messages:
    76
    Likes Received:
    1
    Location:
    Orlando
    Hello,

    How can we add a read more function to the recent posts on the home page? We would like to keep the content blocks a consistent height. So when the post data is longer than the setting a read more function will show us just as it does in the three column featured area. Your help with this will be greatly appreciated.
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to front-page.php present in your theme directory and add the code given below

    Code:
      <a class="read_more" href="<?php the_permalink() ?>">Read More...</a>
    check image for reference

    2014-04-01_1216.png





    Thanks & Regards
    Gourav Shrivastava
     
  3. sotb0rlando

    sotb0rlando Member

    Joined:
    Dec 9, 2012
    Messages:
    76
    Likes Received:
    1
    Location:
    Orlando
    Thank you that worked. One additional question so that they are consistent can we make the read more exactly like the read more in the featured section with the image to the left?
     
  4. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
     a.read_more{
    background: url(ENTER YOUR IMAGE ADDRESS HERE) bottom center no-repeat;
    padding: 7px 0;
    padding-left: 106px;
    }

    Thanks & Regards
    Gourav Shrivastava
     

Share This Page