logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$10
Would like to make each blog post an excerpt and 2 other question

Hey there,

Website is www.vickisimpson.com

My client would like to make each blog post on her website an excerpt (e.g, a snippet with 'Read More' at the bottom). This needs to be both on the home page and blog page. (same blog).

Also, I have a plugin called shareaholic which I'd like to configure to show up on the home page as well as the blog page. However when I try to do this in settings, In order for me to have it show up on the blog page I have to check 'Pages' which makes it show up on every page. I just want it to show up on the blog page and the home page.

I'd also like to make the grey space between the top banner and the top of the page thinner. Probably half the width.

If someone could help me out that would be great!

Kate

This question has been answered.

Kate Hernandez | 01/25/13 at 3:21am Edit
Tutorial: How to assign prize money


(8) Responses

See a threaded view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    01/25/13
    3:28am
    Jatin Soni says:

    Instead of

    the_content()
    use
    the_excerpt() 
    in the loop for home and blog page. It will display only excerpt. If you are not using post thumbnail in the loop and want than use the_post_thumbnail() to display thumbnail with excerpt.

    Check this:
    http://codex.wordpress.org/Function_Reference/the_excerpt
    http://codex.wordpress.org/Function_Reference/the_post_thumbnail

    Previous versions of this answer: 01/25/13 at 3:28am

  • avatar
    Last edited:
    01/25/13
    3:31am
    Arnav Joy says:

    for home page you can use

    if( is_home() ){

    //your code
    }

    and for page you can check it as:-

    if( is_page($Page_id) ){
    // your code
    }

  • avatar
    Last edited:
    01/25/13
    5:32am
    Ellah A. says:

    Not sure what theme you are using but if you can find your index.php, or post.php or content.php open it end edit few lines.

    Find something similar lines like this.


    <?php the_content(); ?>


    change it to :


    <?php the_excerpt('Read more...'); ?>


    That should work.

  • avatar
    Last edited:
    01/25/13
    8:21am
    Kiet Luong says:

    we need change css to made the grey space between the top banner and the top of the page thinner.
    config shareaholic include css to show up on the home page and the blog page.

    Regards !

  • avatar
    Last edited:
    01/25/13
    3:27am
    Kate Hernandez says:

    where do i do this?

  • avatar
    Last edited:
    01/25/13
    3:27am
    Kate Hernandez says:

    where do i do this?

  • avatar
    Last edited:
    01/25/13
    3:31am
    Jatin Soni says:

    It should be done within the loop. Find while(the_post()) something similar code and in that you will find the_content() replace it with the_excerpt(). You can use search function to find the code.

  • avatar
    Last edited:
    01/25/13
    8:22am
    Kiet Luong says:

    I will do it for you

This question has expired.



Gabriel Reguly, Christianto, Kate Hernandez voted on this question.



Current status of this question: Completed



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.