Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Read More Inline

Descrizione

Allows you to use the ‘read more’ quicktag to hide the content following it and instead show a ‘read more’ link. When the user clicks the link, they see the rest of
the content right after the link, without leaving the page.
It replaces the default behaviour (linking to a full version of the page/post) and is a way of keeping the initial page content short,
but allowing users to read more if they want to, without having to leave the page.
It’s superlightweight, works on the fly using jQuery and can be activated and deactivated without making any changes or leaving any trace in your WordPress installation.

Installazione

This section describes how to install the plugin and get it working.

  1. Upload the read-more-inline folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the ‘read more’ quicktag to a page part-way through the content.
    (There’s a button for this: should be in the top row above the editor and it looks like a page break; if you hover over it, it will say Insert More Tag and if you click it, it will insert the required shortcode; or, insert <!--more--> in HTML view).

The content after the quicktag will be hidden initially, but the ‘read more’ link will toggle its visibility.
4. Add this to your page template: <?php global $more; $more = FALSE; ?> after the_post() but before the_content() in The Loop. See https://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages for more details.

FAQ

Can I use this on posts?

No. It’s only for pages so shouldn’t be used if you rely on ‘read more’ links to link to the full post when you’re outputting excerpts, say on a homepage list of recent posts.
You’ll need to add this line to your page template as well: <?php global $more; $more = FALSE; ?>
See https://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages for where and why.

Can I customise the wording of the link text?

Yes: modify the_content function in your templates e.g. <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

Recensioni

26 Gennaio 2018
Simple and works smoothly, but lacks custom script opportunity.
3 Settembre 2016
It's working perfect in my blog.. 🙂 Thank for develop this plugin... :D:D:D
Leggi tutte le recensioni di 7

Crediti e riconoscimenti

“Read More Inline” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “Read More Inline” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

0.3

  • Fixed javascript register/enqueue function

0.2

  • Amended installation instructions to include template code changes necessary.
  • Changed code to find original more link, instead of the span that the_content() replaces it with.