WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to use the Read More Right Here Plugin? (17 posts)

  1. journalismhub
    Member
    Posted 2 years ago #

    Dear all,

    I installed and activated the "Read More Right Here" plugin. I want to use it in my posts but I don't know how. I read about it but the plugin description was not very helpful.

    Check out my site: http://www.journalismhub.com
    Let's say I want to add a "Continue reading" link somehwere. How?

    Please if you are going to answer my inquiry, I would really appreciate it if you can provide me with simple and clear steps.

    Many thanks.
    JH

  2. vtxyzzy
    Member
    Posted 2 years ago #

    That plugin just uses the built-in 'More' tag, but changes its behaviour.

    To use it, just add a 'More' tag into your posts where you would like the link to show.

    Here is a video tutorial on using the 'More' tag:

    http://www.youtube.com/watch?v=iJJ5ABPyS1w

  3. journalismhub
    Member
    Posted 2 years ago #

    Thanks - it worked. BUT I want to ask: how to make the "Continue reading" link opens he post in a new page separately and not expand it down.

    Thanks.
    JH

  4. sangram.patra
    Member
    Posted 2 years ago #

    hi journalismhub

    Try to use following code in your theme's functions.php at last..

    function theme_excerpt_more( $more ) {
    return ' ' . __( 'Continue reading <span class="meta-nav">→</span>', 'theme_name' ) . '';
    }
    add_filter( 'excerpt_more', 'theme_excerpt_more' );

  5. journalismhub
    Member
    Posted 2 years ago #

    Hi,

    It doesn't work - it actually worked once but never again.

    Any help please?

  6. journalismhub
    Member
    Posted 2 years ago #

    Hello - can anyone help with this matter?

    I added the coe above but it is not working.

    Thanks.
    JH

  7. vtxyzzy
    Member
    Posted 2 years ago #

    Take out the code suggested by sangram.patra and disable the 'Read More Right Here' plugin so you have the native read more.

    Then, put this code in your functions.php:

    // More tag link open in new window
    function more_tag_new_window($link) {
       $link = preg_replace('/#[^\d]+\d+/','',$link); // Remove the jump link
    
       $matches = array();
       preg_match('/<a (.+)<\/a>/',$link,$matches);
    
       $new_link = '<a onclick="window.open(this.href); return false;" ' .
          'onkeypress="window.open(this.href); return false;" ' . $matches[1] . '</a>';
    
       return $new_link;
    }
    add_filter('the_content_more_link','more_tag_new_window');
  8. journalismhub
    Member
    Posted 2 years ago #

    Oh really?

    Check the site now. The code is corrupt.

    Anyone please?

  9. vtxyzzy
    Member
    Posted 2 years ago #

    The site looks fine to me. Why do you think the code is corrupt? I have tested on my own site and it works.

    Please put your functions.php file in a pastebin and post a link to it here so I can see how it should be inserted.

  10. journalismhub
    Member
    Posted 2 years ago #

    Well click on the "Continue reading" - where does it take you?

  11. journalismhub
    Member
    Posted 2 years ago #

    Also I don't want it to open in a new window. It does now.

    JH

  12. vtxyzzy
    Member
    Posted 2 years ago #

    Please put your functions.php in a pastebin so I can examine it.

  13. journalismhub
    Member
    Posted 2 years ago #

    To be honest - not sure how to do that.

  14. vtxyzzy
    Member
    Posted 2 years ago #

    I thought that was what you wanted when you asked for this:

    Thanks - it worked. BUT I want to ask: how to make the "Continue reading" link opens he post in a new page separately

    .

    It sounds like you want the default behaviour of the More tag. If so, just remove all of the extra code you put into functions.php and disable the "Read More Right Here" plugin.

    If not, please explain exactly what you want.

  15. journalismhub
    Member
    Posted 2 years ago #

    I want to have a simple Continue Reading link. Once clicked the site takes me to the article (BUT NOT) in a new window.

    JH

  16. vtxyzzy
    Member
    Posted 2 years ago #

    That is the way the default more tag works. You do not need to do anything special to make that happen.

  17. journalismhub
    Member
    Posted 2 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic