- This topic has 11 replies, 3 voices, and was last updated 2 months, 2 weeks ago by Tom.
May 13, 2020 at 5:34 am #1282296Eli
Updated GP Premium on my staging site and it seems to have broken an element I have to put social share buttons under the blog header. The element places a shortcode containing a reusable block. It is working great on the live site running the previous version of GP Premium.
Staging site: https://teal.generalcode.com/blog/byob-bring-your-own-bag/
Live site: https://www.generalcode.com/blog/byob-bring-your-own-bag/
Notice the difference in the social buttons below the header. I have tried putting different blocks in their place with the same result (all styling is removed, seems to just use the block defaults). Also tried copying and pasting the code which didn’t work either.May 13, 2020 at 9:25 am #1282830LeoStaffCustomer SupportMay 13, 2020 at 10:18 am #1282912Eli
I think I eliminated the block plugins from the problem by swapping in other blocks from other plugins all resulting in the same issue (not maintaining any stylizing). The first thing I thought was causing the issue was a shortcode plugin which was how I was inserting the blocks. When I put the code directly into the element without a shortcode and it still wasn’t working I thought that only left the GeneratePress plugin as the issue. I don’t see an easy way to revert to the previous version to be sure, but I think the fact that the live site under the previous version (working fine) vs the staging site with the latest version (not working) makes it fairly clear.May 13, 2020 at 1:01 pm #1283138LeoStaffCustomer Support
GP Premium should have nothing to do with those content coming from the plugin itself.
Are you able to check with their support to see if they can see anything?
Does the issue exist if you disable GP Premium?May 14, 2020 at 6:01 am #1283987Eli
The plugins are working fine everywhere except in this case where they’re included in a GP Elements hook placing them in the blog header, sorry if this wasn’t clear. If I disable GP Premium they disappear completely so not much help.May 14, 2020 at 9:32 am #1284494LeoStaffCustomer SupportMay 18, 2020 at 5:14 am #1289903Eli
Yes, it’s a shortcode.May 18, 2020 at 12:04 pm #1290671TomLead DeveloperLead Developer
I’m actually surprised it was working in the first place, but it depends on how Kadence/CoBlocks generate their dynamic CSS.
It seems on the staging site none of the
coblocks-style.cssCSS is loading. The staging site seems to be using ghostkit instead of kadence for the surrounding elements.
For our own block plugin (GenerateBlocks), we check the actual content for blocks and build our CSS based on that. If a block is included outside of the content area, we don’t know it exists and therefore can’t build the necessary CSS.
GP Premium 1.11.0 will include functionality for this, letting GenerateBlocks know the blocks exist elsewhere. However, it’s likely not possible to do this for every block plugin out there.
If Kadence/CoBlocks have made it so we can tell their plugin to check elsewhere for their blocks (other than the post content), we can likely provide a solution in here, but that depends on if it’s possible on their end of things.May 18, 2020 at 1:14 pm #1290753Eli
OK. Two questions then. I can’t find the GenerateBlocks plugin? If it works best with the theme would love to check it out. And secondly, all I really want to do is add sharing buttons under the header of blog posts, clearly there’s a better way than hooking a reusable block shortcode. Any tips for that?
Thanks!May 18, 2020 at 4:32 pm #1290939TomLead DeveloperLead Developer
GenerateBlocks isn’t officially released yet, but we’re planning on releasing it tomorrow. You can download the RC here: https://generateblocks.com
However, it isn’t yet compatible with Elements. That will come in GP Premium 1.11.0, which is in development right now.
Have you tried any of the social sharing plugins out there? Will these buttons share the current post, or link to social profiles?May 19, 2020 at 5:03 am #1291675Eli
Cool, look forward to checking that out. For now I’ll find another plugin for this purpose. Thanks!May 19, 2020 at 9:31 am #1292314
- You must be logged in to reply to this topic.