WordPress.org

Ready to get started?Download WordPress

Forums

Live Wire
How and here Continue Reading Link at each Post on Front Page (8 posts)

  1. Asif Mansoor
    Member
    Posted 1 year ago #

    Hello,

    I want the help that at which file of live wire theme I add the Continue Reading/Read More Link that open the full post, on front Page where all posts and short text is given.

    Please tell em the exact location of Live Wire theme where it should be put the code?

    Thanks,

    Asif

  2. Tara
    Member
    Posted 1 year ago #

    You can read more about the_excerpt Vs. the_content here:
    http://codex.wordpress.org/Function_Reference/the_excerpt
    http://codex.wordpress.org/Excerpt

  3. Asif Mansoor
    Member
    Posted 1 year ago #

    Hello,

    I have added the code line "> Read More...

    after the <?php the_excerpt(); ?>

    But the Read More is shown below a Share link.

    I want that it should show right after the last word of post summary that ends at [...].

    So any suggestion?

    Thanks,

    Asif

  4. madsgormlarsen
    Member
    Posted 1 year ago #

    Hi Infozonepk

    Looking for an answer to the exact same question - did you ever find the solution?

    /Mads Gorm

  5. Asif Mansoor
    Member
    Posted 1 year ago #

    Hello,

    I did not find a good solution cz theme did not support well. SO I leave this option.

    Asif

  6. madsgormlarsen
    Member
    Posted 1 year ago #

    Oh but I did find the solution

    Add this to functions `// Replaces the excerpt "more" text by a link
    function new_excerpt_more($more) {
    global $post;
    return '... <a class="moretag" href="'. get_permalink($post->ID) . '">→  Læs mere</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more')`

    You can see it working here: ingeniøruddannelser

  7. Sami Keijonen
    Member
    Theme Author

    Posted 1 year ago #

    That code should go to child theme functions.php.

    http://themehybrid.com/themes/live-wire-child

    And there is no need for global $post. Remove that line and replace $post->ID with get_the_ID().

    http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_more

  8. Asif Mansoor
    Member
    Posted 1 year ago #

    Hello,

    I am just going to touch coding after along time.

    Can you please tell me the exact file in whcih I have to make the changes and also write the complete code that I have to Put and the link title should be 'Read More'.

    Please help.

    Thanks,

    Asif

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.