• 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: https://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)
  • vtxyzzy

    (@vtxyzzy)

    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:

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

    Thread Starter journalismhub

    (@journalismhub)

    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

    sangram.patra

    (@sangrampatra)

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

    Thread Starter journalismhub

    (@journalismhub)

    Hi,

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

    Any help please?

    Thread Starter journalismhub

    (@journalismhub)

    Hello – can anyone help with this matter?

    I added the coe above but it is not working.

    Thanks.
    JH

    vtxyzzy

    (@vtxyzzy)

    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');
    Thread Starter journalismhub

    (@journalismhub)

    Oh really?

    Check the site now. The code is corrupt.

    Anyone please?

    vtxyzzy

    (@vtxyzzy)

    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.

    Thread Starter journalismhub

    (@journalismhub)

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

    Thread Starter journalismhub

    (@journalismhub)

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

    JH

    vtxyzzy

    (@vtxyzzy)

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

    Thread Starter journalismhub

    (@journalismhub)

    To be honest – not sure how to do that.

    vtxyzzy

    (@vtxyzzy)

    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.

    Thread Starter journalismhub

    (@journalismhub)

    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

    vtxyzzy

    (@vtxyzzy)

    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.