Title: Plugin causes Layout Shift with Theme
Last modified: April 24, 2021

---

# Plugin causes Layout Shift with Theme

 *  Resolved [reiseblitz](https://wordpress.org/support/users/reiseblitz/)
 * (@reiseblitz)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/)
 * Hello,
 * I keep having a peculiar issue with your plugin which has only started to occur
   recently. My theme (Newspaper by tagdiv) offers a login form which I don’t use
   and have thus deactivated in the Theme settings. However, when loading a blogpost(
   it doesn’t happen on pages) both on mobile and desktop the theme’s login form,
   despite being disabled, is shown unstyled for a few milliseconds before it disappears
   again.
 * This causes a strong layout shift which now impacts my Google Core Web Vitals
   CLS value massively.
 * After deactivating all plugins and reactivating them one by one I could track
   that issue down to PublishPress Blocks. As soon as I deactivate it, the issue
   is gone. Currently, I only use the Accordion block and on blog posts that don’t
   have one, the issue doesn’t occur either. Hence, I suspect it must have to do
   with that somehow. However, I am out of ideas.
 * Would you have any idea how to fix this?
 * Thank you very much and kind regards,
    Wolfgang
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-causes-layout-shift-with-theme%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [htmgarcia](https://wordpress.org/support/users/htmgarcia/)
 * (@htmgarcia)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14365550)
 * Hi [@reiseblitz](https://wordpress.org/support/users/reiseblitz/),
    I’m not able
   to see the layout shift. Is possible for you to share a screencast?
 *  Thread Starter [reiseblitz](https://wordpress.org/support/users/reiseblitz/)
 * (@reiseblitz)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14367034)
 * Hi [@htmgarcia](https://wordpress.org/support/users/htmgarcia/),
 * Thanks for getting back. I implemented a quick fix over the weekend by simply
   commenting out the login parts of my theme’s code. However, I would like to achieve
   an update-proof solution.
 * Hence, I have reproduced the issue in my staging environment, please find a screencast
   here: [https://screenrec.com/share/TVfqiLb9DQ](https://screenrec.com/share/TVfqiLb9DQ).
 * I hope this helps? If you need any further info, please let me know.
 * Thank you!
 *  Plugin Author [htmgarcia](https://wordpress.org/support/users/htmgarcia/)
 * (@htmgarcia)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14367318)
 * Thanks for sharing the screencast!
 * In your staging environment, if you switch to a core theme like Twenty Twenty
   One, can you reproduce the issue?
 * Regards
 *  Thread Starter [reiseblitz](https://wordpress.org/support/users/reiseblitz/)
 * (@reiseblitz)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14367383)
 * I have just tried and it doesn’t happen then. This seems logical to me as this
   login form is part of the theme (it can be used as a modal somehow – I’ve actually
   never tried it and had it always deactivated). From what I could figure with 
   my limited programming knowledge so far is that the login form is always in the
   source code of the page but hidden when deactivated. Hence, I wondered if there
   might be some interference with the unfolding mechanism of the accordion?
 * If it helps for analysis, I can reactivate the uncommented lines in the live 
   version.
 *  Plugin Author [htmgarcia](https://wordpress.org/support/users/htmgarcia/)
 * (@htmgarcia)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14367664)
 * Please send us a message through our support page with the URL of the staging
   site to preview the issue: [https://publishpress.com/publishpress-support/](https://publishpress.com/publishpress-support/)–
   Include the URL of this forum topic as reference.
 *  Thread Starter [reiseblitz](https://wordpress.org/support/users/reiseblitz/)
 * (@reiseblitz)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14375931)
 * Thanks, I have just sent the support request.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin causes Layout Shift with Theme’ is closed to new replies.

 * ![](https://ps.w.org/advanced-gutenberg/assets/icon-256x256.png?rev=3393761)
 * [PublishPress Blocks - Block Controls, Block Visibility, Block Permissions](https://wordpress.org/plugins/advanced-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-gutenberg/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [reiseblitz](https://wordpress.org/support/users/reiseblitz/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/plugin-causes-layout-shift-with-theme/#post-14375931)
 * Status: resolved