WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
Adds odd class tags to SlideDeck plugin (4 posts)

  1. DavidGMiles
    Member
    Posted 4 years ago #

    Can the plugin be made to ignore certain types of content altogether - such as slidedeck - it adds classes to the deck which make it display rather oddly - i love the ease with front end editing but this glitch is annoying

    Captured image showing the glitch is here

  2. scribu
    Member
    Plugin Author

    Posted 4 years ago #

    I'm assuming 'slidedeck' is a custom post type. If so, this should work:

    function fee_restrict( $allow, $post_id ) {
      if ( 'slidedeck' == get_post_type( $post_id ) )
        return false;
    
      return $allow;
    }
    add_filter( 'front_end_editor_allow_post', 'fee_restrict', 10, 2 );
  3. DavidGMiles
    Member
    Posted 4 years ago #

    No it is inserted into a page via shortcode - similar to this

    [SlideDeck id='174' width='98%' height='240px']

    it can exist on any page - is there anyway of delimiting an area as not editable by the "Front-End Editor"

    Thanks

  4. scribu
    Member
    Plugin Author

    Posted 4 years ago #

    Try this: Go to Settings -> Front-end Editor and disable uncheck the Title field.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic