• Hi, when I include the content_protector short code and have e.g. a dashed box around it, then – after successful authorisation – the protected content is shown (right!), but with the formatting of the content_protector form (the dashed box is around all the content – that is wrong).

    The reason is, that in file content-protector.php line 476 in case of success the div’s for the content_protector form are included around the formerly protected content
    return "<div id=\"content-protector" . $identifier . "\" class=\"content-protector-access-form\">" . $successMessage . do_shortcode( $content ) . "</div>”;

    But they should not. For me – because I do not use success messages – works just returning the content
    return do_shortcode( $content );

    Only in case of a success message there might be a div for styling the success message – but not around the whole content!

    Thank you for this great and useful plugin!

    https://wordpress.org/plugins/content-protector/

Viewing 1 replies (of 1 total)
  • Hi, emanaku.

    As of 2.6.2, this is not considered a bug (i.e., having the unlocked content visually set apart from the rest of the page is intentional). Having said that, I can appreciate how keeping the form formatting around unlocked content should be optional, and an option will be added to the next release to enable this.

Viewing 1 replies (of 1 total)
  • The topic ‘After authorisation the formatting is messed up’ is closed to new replies.