CoBlocks 3.0.1 appears to break Elementor page builder stylesheet order
-
CoBlocks 3.0.1 effects the order in which Elementor css files are loading on the page causing layouts to break on sites dramatically. This is because styles need to load in a particular order in order to cascade properly. This problem occurs with any theme and with only Elementor and CoBlocks active. This problem did not occur with CoBlocks 2.25.5.
To test:
- Edit a page with Elementor and add an icon box widget to the page.
- In the icon box widget styling, set the styling to be Centered.
- View the page.
- The icon box widget will show its content centered. https://www.evernote.com/shard/s20/sh/4c0dd1f2-5e70-4db3-b473-3699601a8ea4/llfcNSWJI0WcCWl8BURpQpEMfhjlgEsOJCX_f0ORmoSWLmP1_LJRYX3qFQ
- View the page source of the page. Take note of the order in which the Elementor stylesheets are loading. See screenshot: https://www.evernote.com/shard/s20/sh/633acd60-8de2-4c56-842e-c8989ac59851/tBZGw26WsYMzHjqZwzxTYxOA2hQ87NSl9jsl41DJ6M-kTVf3euu6HdNF-w
- Activate CoBlocks 3.0.1 plugin.
- Refresh the above page. The icon box items will no longer be centered. https://www.evernote.com/shard/s20/sh/16391c93-390d-43f2-b6e4-0f22e538b790/SmLtIAygPk87KEiHGoaz8VuvfDBOAzD8NCqQ9ZUYQaxpOH0Wr6D6YHAsgw
- View the page source of the page. Take note of the order in which the Elementor stylesheets are loading. Notice, the are in a complete different order thus wrecking the cascading of the styles correctly resulting in broken layouts. See screenshot in step 5.
- Revert CoBlocks to 2.25.5.
- Refresh the above page. Note that the styling is correct.
- View the page source. Note that the stylesheets are loading in the correct order as they should.
- CoBlocks 3.0.1 appears to be changing the order in which other plugin’s stylesheets are loading. This may effect more than Elementor. I have not tested on other hosts or with other page builders.
Please note, in the above example, I am using the simple example of the icon box so people can replicate the problem. However, since this effects many styles on each page, the impact can be catastrophic on the site in terms of breaking layouts and designs.
I don’t know if the stylesheet file orders is the specific cause of the styling issues, it’s just what jumped out. There are also inline styles that are out of order with the 3.0.1 CoBlocks installed. So someone needs to dig a bit deeper to see what is really breaking the styles. The stylesheet and inline styles order is certainly important, though.
- The topic ‘CoBlocks 3.0.1 appears to break Elementor page builder stylesheet order’ is closed to new replies.