Consistent styling of blocks using a Cloud library module template

Posted in: Newspaper
Post count: 72

Hi,
We’re developing a WordPress site using the Newspaper theme and TagDiv with blank Cloud Templates modules, and need advice on creating reusable custom blocks. Our goal is to:
Create modular, reusable blocks that maintain consistent styling
Avoid redesigning blocks each time they’re needed
We’re looking for a way to create modular, reusable blocks that maintain consistent styling, and avoid redesigning blocks each time they’re needed. We need to build complex layouts where posts have different display formats, for example:
First post: Title only
Second and third posts: Featured image + title

Here is a visual example of what we want to achieve: https://devenirbilingue.com/wp-content/uploads/2024/12/screenshot-sandbox.png

The main issue is that flex blocks cannot be used within Cloud Library modules. While I can use Flex Block 3 when editing a regular page to achieve the desired layout, this functionality isn’t available in module editing. Creating the layout directly on a page isn’t practical, as it would require re-styling the block every time it’s needed.
We attempted to analyze existing Cloud Templates by importing them into new modules to understand their flex block implementation. However, we encountered what appears to be a bug, receiving the error: “The Cloud Library Module Template set for this block is not valid or it no longer exists. Please select another Module Template.”
What could we do to build custom and reusable blocks modules? Did we miss something? Any help will be appreciated.

Thank you.

Post count: 27744

Hello,

There are more alternatives. You can create your own modules, or you can save with right-click https://i.imgur.com/EVyX8tW.png the blocks that you have designed as you want and use them wherever you want on the website.
Also, you need to import a module and after assigning it to the flex block builder -> https://forum.tagdiv.com/modules-builder-newspaper-theme/

Thank you!

Post count: 72

Hi,
Thanks for your answer.

The « save element » button is a part of the answer we’re looking for but not completely. The problem with this solution is that we can’t edit styles of our block and apply them to all of its implementations.

We tried a trick: create a flex block 3, save as a new element, use it in a module and then import this module in a flex block builder. With this approach, styles can be reused. But the posts list can’t be overridden due to filters and loop processed in the module part and not inside the block. So, with is, it will require duplicating our module for all its implementations and we’re back at our first problem.

https://devenirbilingue.com/wp-content/uploads/2024/12/screenshot-TagDiv.png

Are we missing something? Do you have a solution for this case we want to solve? Is there no way to do so? Let us know.
Thank you so much.
Emma

Post count: 27744

Hello,

Unfortunately, no. As I mentioned above, you can only save the block after the design is ready and then use it in other sections of the site. I believe you’ll make the changes once, and they won’t be daily.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.