Using Global blocks to build a content based design approach

Hi,
I have been delving into Global Blocks in the last few weeks and have noticed some real advantages to their wholesale use to develop more complex design solutions. Specifically in the ability to nest and combine their shortcodes not only inside new global blocks but also inside the more simplified elements of the new versions of the site.
However I would like to find out what effect this has on the code and ultimately the speed of the site before I commit to using the technique in a wholesale fashion on my site and others I have planned.
I would also like to know if their are any planned UI changes in the works for Global Blocks in terms of better organization of the list of Global Blocks that you create, i.e. folders and such.
As an example, I recently used a Tab element that had headlines, text, images and even a content modal embedded in them without a single line of custom html or css. This was achieved by creating several layers of Global Blocks, one inside the other.
My question is this OK and what are the consequences.
Your guidance on this would be much appreciated.
Cheers
David
P.S. Thanks again for manning(and womanning) your post during these troubled times. You guys rock!

1 Like

Hello David,

Thanks for writing in! Yes, you are in the right path in using global blocks. The global blocks shortcode are great in utilizing the Tab element and content area modal element. With your current workflow, just limit the nesting of the global blocks. The more complex nesting of blocks will load several lines of codes which can add up the size of the page. The larger page size would mean slower page loading. If you can have a global block without nesting it in another block, the better.

Hope this helps.

Hi,
Thanks for the reply. Ok so is there a way to add an image to the content modal without using shortcode or html? I’m just not seeing it!
Cheers
David

Hello David,

You cannot add any content, or an image element, in the content area modal without adding any shortcode or html code. If you use global blocks, you can insert all the elements like the text, headline and images in your block and use the global block shortcode in the content area modal element.

To learn more about Global Blocks, please check this out:

Why don’t you check out this video tutorial as well:

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.