Page Excerpt Widget
Some new features (4 posts)

  1. eqhes
    Posted 3 years ago #


    I'm using the One Pager Theme from Woothemes. The problem of that theme is that we can add only one page on the home page, but your plugin solves this gracefully :).

    I've added some new features to your plugin also:

    • Shortcodes and "everything else" rendering -if wanted- using the "apply_filters" function from the WordPress API.
    • New option to enable/disable "p" tags around the excerpt. "p" tags are not useful when "apply_filters" is enabled (we then get this error: <p><p>some text</p></p>), and when it doesn't, it may or may not be useful depending on the theme and the admin interests.
    • Added a "p" tag with the class "jmhpew-readmore" around the "read more" link. The new class allows us to edit the link styles and I think that with the "p" tag the code is more standards compliant:
      • Incorrect: <p>excerpt text</p><a href="#">read more</a>
      • Correct: <p>excerpt text</p><p><a href="#">read more</a></p>
    • Added a "span" tag with the class "jmhpew-dot-excerpt" around the " [...]" text. The new class allows us to edit the styles of that element.

    You can find the new code here: http://pastebin.com/djPiN9uQ (save it as jmh_pew.php and replace the file with the same name in the "page-excerpt-widget" folder).

    IMPORTANT: first of all, backup all your data!!! I'm using this code on my own, but code is always out of warranty ;).

    Hopefully we can see all these changes in the next release ^-^.



  2. Andrei G
    Posted 3 years ago #

    Great tweaks, eqhes, thanks for contributing.

  3. jcuenin
    Posted 3 years ago #

    Thanks for this, could it be possible to include it to the plugin update?
    Or maybe to the git repo? https://github.com/JonathanMH/page-excerpt-widget

  4. eqhes
    Posted 3 years ago #

    A bit late, but yesterday I sent a pull request to the author on GitHub. Hope he accepts it :).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page Excerpt Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic