• Resolved acelerawp

    (@acelerawp)


    Hi GenerateBlocks team, first of all, congratulations for this really amazing plugin. The Performance optimization is insanely good. I want to use it, but it seems that there is a GenerateBlocks Style issue with every theme that I try, except of course, GeneratePress. Let me explain:

    I use the latest version of “GenerateBlocks” to build a very simple “Banner” to show it at the end of All my Single Posts with the help of the Hooks. After seeing the Issue happening with the theme that I use “Suki”, I ran some extra Tests using “GeneratePress”, “Astra”, “Neve”, “Kadence”, “Blocksy” and “Page Builder Framework”. Using the “Hooks” functionality also available in All those themes using its PRO / Premium Addons. Below I show You the screenshots where you will see the Issue happening in all those themes. The only theme where my simple “Banner” is shown correctly is in GeneratePress. Please check the images:

    1 – GeneratePress –> https://ibb.co/Bwk8HyF

    2 – Astra –> https://ibb.co/PrrGwhb

    3 – Neve –> https://ibb.co/4THqdC3

    4 – Kadence –> https://ibb.co/TKC64CM

    5 – Page Builder Framework –> https://ibb.co/HGfbCMr

    6 – Blocksy –> https://ibb.co/6H8pwbV

    7 – Suki –> https://ibb.co/37f1682

    Here the URL of one of my Testing websites using “Suki” theme where you can check the issue just before the “Comment section” –> https://tpbest.xyz/test-5/

    Would be Awesome if You can help me with this issue,
    All the Best,
    Miguel

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tom

    (@edge22)

    Hi there,

    Sorry for not getting back to you sooner here – somehow this topic never made it into our system.

    How are you adding the blocks into those other themes?

    If you’re using Hooks in GeneratePress, it works because we explicitly added support for GenerateBlocks inside GP Premium – not the other way around.

    Are you using a similar hook system in those other themes? If so, they will need to add support for GenerateBlocks so the blocks are styled, just like we did in GP Premium.

    In an effort to keep GenerateBlocks lightweight and not bloated with code, we won’t be adding a ton of third-party theme/plugin support directly into the plugin (not even for GeneratePress).

    Thread Starter acelerawp

    (@acelerawp)

    Hi Tom, thank You so much for your answer. I now understand perfectly. I’m Not a developer, so I was Not aware that the other themes need to explicitly add support for “GenerateBlocks” in order to make the “Styling” work when using the “Hooks” system to display the Blocks.

    When I use other Gutenberg Block plugins like “Stackable”, “Qubely”, “Kadence Blocks”, etc…, all of them are working out of the Box with all the themes mentioned above without any styling issue, even when I use the “Hooks” to display the blocks. So, I assume “GenerateBlocks” is coded in a way(for performance reasons) that makes it necessary to add specific support in other themes in order to work correctly when using the “Hooks” system.

    Anyway, I will contact the developer of the theme I’m using and see if he can add the required support for GenerateBlocks.

    Plugin Author Tom

    (@edge22)

    As of right now, GenerateBlocks scans the content of a page for its blocks and then generates the necessary dynamic CSS (and nothing else) based on what it finds.

    When its blocks are used outside of the content, it’s necessary to pass that content through the generateblocks_do_content filter so it knows of their existence.

    We’re looking at ways to improve this discovery process. If we’re able to do so without affecting performance, we’ll definitely do it.

    I’m not able to reply to your updated 3 star review, as it’s too old, but hopefully this explains the issue you’re having with those other themes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling Issue’ is closed to new replies.