• I am using a theme (Divi) with a built-in drag ‘n drop layout manager but once I put the shortcodes for the login or registration on the page it seems to push all the blocks and handle the wrong css. I tried to add a complete blank css file to the wp-members plugin but it was still not fixed. the problem seems to related to <p> tags. however I can’t figure out what is causing it exactly.

    https://www.ads-software.com/plugins/wp-members/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Even though the plugin attempts to shut of wpauotp and wptexturize, depending on where the forms are used and how they are displayed, WP’s wpautop function can sometimes read this as regular content and place <p> tags in place of line breaks.

    Thread Starter Trisy123

    (@trisy123)

    As glorious as your answer seemed at first. Disabling the wpautop function did not not solve the issue.

    I have tried to disable it by putting this in the functions.php:

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );

    And I tried to use a plugin to disable wpautop per page.

    None of the above even made a notable difference.

    Do you have any idea what else could be going on?

    Edit:
    I have noticed something. When I am logged in both shortcodes display some text and links to logout and stuff. BUT it does not mess with my layout. So my layout only changes when the actual form is displayed. Maybe this is a lead to the issue?

    Edit: I found there are still <p> tags in akward places. So I may be doing something wrong here.

    Plugin Author Chad Butler

    (@cbutlerjr)

    Not sure what to tell you in this case. The p tags are coming from the wpautop function. The plugin removes this function from the_content when the forms are generated. However, that’s for the_content. If these are used somewhere else then you’ll likely need to figure out what filters are being run. That could be theme specific in this case.

    Thread Starter Trisy123

    (@trisy123)

    Thank you Chad!
    I have dropped my issue on the Divi forum and am awaiting a reply.
    I will update you on any progress.

    Thread Starter Trisy123

    (@trisy123)

    Hi…I’m having the same issues with the Divi theme. I added this to my functions.php file, but there are
    ‘s still above the excerpts:
    remove_filter( ‘the_excerpt’, ‘wpautop’ );

    Any resolution with this issue?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Layout issue with Divi theme’ is closed to new replies.