WordPress.org

Forums

Attorney
How to add more text in the slider (5 posts)

  1. rattelaw
    Member
    Posted 1 year ago #

    How can I add more text in the slider? It automatically puts the first couple lines but I would like to show a longer excerpt. Thanks.

    http://beaconlegalnh.com/

  2. rattelaw
    Member
    Posted 1 year ago #

    I figured this out in case anyone else needs it.

    First create a child theme so that you can change things without messing up the original theme. (There are instructions in the WordPress Codex)

    Then copy the slider files into the child theme directory.
    Ex. alt_homepage_blog_slider.php is for the post slider with widgets.

    Then each time you see this line <?php echo attorney_excerpt(25); ?>
    change the 25 to whatever length you want.

    Ex. <?php echo attorney_excerpt(50); ?> will display the first 50 words of the post.

  3. grmbll
    Member
    Posted 1 year ago #

    Thnx! Helped me a lot!

  4. PeterStanton
    Member
    Posted 10 months ago #

    ack - still not working for me - any ideas?

  5. PeterStanton
    Member
    Posted 10 months ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic