WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Inline Editor] Expects "Edit" link class to be "post-edit-link" (4 posts)

  1. hedgehogsbottom
    Member
    Posted 4 years ago #

    How this plugin works is by searching for your theme's "edit" link, which this plugin expects to be of the class "post-edit-link".

    Beware if your theme does not use this class (I'm using Hybrid-News - which does not use this class in the edit links).

    Modifying my theme with a custom filter to use the post-edit-link class allowed this plugin to take over control of the "edit" link.

    http://wordpress.org/extend/plugins/inline-editor/

  2. WPXpand
    Member
    Posted 4 years ago #

    Thank you for your comments, we appreciate you taking the time to try this plugin.

    Version 0.5.4 tries to address this issue, any problems let us know.

  3. Justin Tadlock
    Member
    Posted 4 years ago #

    Hybrid will be updated to use class="post-edit-link" in the next version as it's a class normally generated by WP. Just one of those overlooked things since it uses get_edit_post_link and not edit_post_link to form the link.

    I'm not sure how much I like the idea of a plugin relying on a specific CSS class though, especially when that class is available to be changed through the edit_post_link filter hook.

  4. WPXpand
    Member
    Posted 4 years ago #

    that class is available to be changed through the edit_post_link filter hook

    Many thanks greenshady, I've updated the plugin to filter the edit link (0.6.12):
    http://wordpress.org/extend/plugins/inline-editor/

    The latest version also gives options to use a floating button in the corner of your content and double-click the content to edit.

Topic Closed

This topic has been closed to new replies.

About this Topic