Support » Fixing WordPress » How to use the Read More Right Here Plugin?

  • Resolved journalismhub

    (@journalismhub)


    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

Viewing 15 replies - 1 through 15 (of 16 total)
  • 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

    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

    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’ );

    Hi,

    It doesn’t work – it actually worked once but never again.

    Any help please?

    Hello – can anyone help with this matter?

    I added the coe above but it is not working.

    Thanks.
    JH

    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');

    Oh really?

    Check the site now. The code is corrupt.

    Anyone please?

    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.

    Well click on the “Continue reading” – where does it take you?

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

    JH

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

    To be honest – not sure how to do that.

    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.

    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

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

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘How to use the Read More Right Here Plugin?’ is closed to new replies.