Hi,
I was wondering if someone can help me slightly edit a module. I would like for this CTA box module to have the text on top and CTA button below as it is squashed together in the current format. I’m not sure how I change this within the coding. Can anyone help?
Anton
February 8, 2023, 10:32am
2
Hi @HBarden ,
could you please provide a link to the page where this module is used or the source code of the module which is located in the design-tools?
Thank you
best,
Anton
HBarden
February 8, 2023, 10:38am
3
Anton
February 8, 2023, 10:46am
4
Hi,
open the module in the design-tools and search for
@media (min-width: 800px){
.cta-box {
align-items: center;
display: flex;
justify-content: space-between;
}
and add “flex-direction: column” so the code looks like this:
@media (min-width: 800px){
.cta-box {
align-items: center;
display: flex;
justify-content: space-between;
flex-direction: column;
}
best,
Anton
HBarden
February 8, 2023, 10:57am
5
Hi,
Thank you. I cloned the module and did this as I would still like a module where it goes to the side, however it seems to have changed both modules?
Anton
February 8, 2023, 11:09am
6
Yes, because they both use the same class and therefore it will affect both modules.
If you want to seperate them you have to modify the code like this
HTML+Hubl:
search for
<div id={{name}} class="lazy module-wrapper text--center cta-box">
...
</div>
and modify it like this
<div id={{name}} class="lazy module-wrapper text--center cta-box vertical">
...
</div>
in module.css area search for the part you’ve already modified and change it like this
@media (min-width: 800px){
.cta-box.vertical {
align-items: center;
display: flex;
justify-content: space-between;
flex-direction: column;
}
best,
Anton