-
AuthorPosts
-
April 5, 2019 at 1:21 am #1087259
Hello
I made a custom widget called ‘consultation’, and then added in the following custom HTML –<div id="ctaBoxWrapper"> <div class="ctaBox"> <h2> Start with a free consultation. </h2> <p> If you are being investigated by police or if you’ve been charged with a criminal or driving offence, don’t face the problem alone. Being accused of an offence is stressful. The prospects of a criminal record or jail sentence can be daunting. Even if you think there is no defence, we may be able to help. To schedule a free initial consultation with one of our Vancouver lawyers, <a href="/contact/">contact us</a> now. </p> <p> [av_button label='Connect' link='page,673' link_target='' size='small' position='left' label_display='' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color' custom_bg='#444444' custom_font='#ffffff' av_uid='' custom_class='ctaBtn' admin_preview_bg=''] </p> </div> </div>
I then placed a color section on each page with no padding and gave it an id of ‘ctaBoxWrapper’. I then added the following css –
/* call to action box above footer ******************************/ #ctaBoxWrapper { width: 100% !important; max-width:100% !important; padding:0 !important; margin: 0px !important; } #ctaBoxWrapper .container { width: 100% !important; max-width:100% !important; padding:0 !important; } .ctaBox { background: #eb001b !important; /* background: url(/images/glassDoor.jpg) no-repeat bottom right; */ margin: 0px !important; padding: 50px !important; } .ctaBox h2 { color: #fff !important; } .ctaBox h3 { color: #fff !important; } .ctaBox p { color: #fff !important; } .ctaBox a { font-weight: bold; color: #fff; } .ctaBox a:hover { color: #000; } /* cta button **********************************/ .ctaBtn { margin-top: 20px !important; } /* same styling as size small - add the class into the shortcode */ .ctaBtn a { background: #eb001b !important; color: #fff !important; opacity: 1 !important; } .ctaBtn a:hover { background: #000 !important; color: #fff !important; opacity: 1 !important; }
I’d like it to be fullwidth, ie, so that the red is flush to the edge as well as flush to the footer, so also no space between this widget and the footer. I’ve looked at lots of posts but can’t make it work. I’ve put a sample page in the private area. Please advise. Thank you in advance.
April 6, 2019 at 7:17 am #1087700Hey webWahine,
Please try the following in Quick CSS under Enfold->General Styling:
#ctaboxwrapper .container { padding:0 !important; }
Best regards,
RikardApril 6, 2019 at 7:16 pm #1087788Hi, Rikard
That’s already in my code – please see above.April 8, 2019 at 9:14 am #1088178Hi,
Ok, then it’s no applying. This CSS is though:
.container { position: relative; width: 100%; margin: 0 auto; padding: 0px 50px; clear: both; }
You can simply inspect the element in your browser to see which CSS is applying to it.
Best regards,
RikardApril 8, 2019 at 7:50 pm #1088422Sorry, not working. I’ve added in backgrounds to see what’s happening and there is still a 50px border, left and right, and looks like a 30px at the bottom. I think it’s because it’s a widget it’s picking up something else. Please advise and thanks again!
#ctaBoxWrapper { width: 100% !important; max-width:100% !important; padding: 0px !important; margin: 0px !important; background: green !important; /* not seen */ } #ctaBoxWrapper .container { position: relative; width: 100% !important; margin: 0 auto !important; padding: 0px !important; clear: both; background: blue !important; /* not seen */ }
April 10, 2019 at 6:56 am #1088986Hi,
No, it’s still the CSS I pointed out previously. If you inspect the element in your browser you will see what I’m referring to. I can’t see your CSS applying at all, where are you placing it?
Best regards,
RikardApril 11, 2019 at 7:20 pm #1089688Sorry, I’m not sure what you mean. I’m using a child theme and the css is there, and the id for the color section on my page is ctaBoxWrapper. I’m putting access into the private for you :)
April 16, 2019 at 4:49 am #1091199Hi,
Thanks for the update.
The ID of the color section and the widget is the same — they’re set to “ctaboxwrapper” and “ctaBoxWrapper”, which is technically the same. Please adjust the Section ID of the color section. If you want to make the color section full width, just follow the steps in the documentation.
// https://kriesi.at/documentation/enfold/color-section/#color-section-with-100-content-width
Best regards,
IsmaelApril 19, 2019 at 6:36 pm #1092723Ah, sorry, I must have tried an id first, then moved to a class; that makes sense! Looking too closely at this one :) Thanks, Ismael!
April 21, 2019 at 6:03 pm #1093106Hi,
Did you need additional help, or shall we close this topic?
Best regards,
Jordan ShannonApril 21, 2019 at 9:57 pm #1093149Go haead and close this, please :)
April 22, 2019 at 2:19 am #1093198 -
AuthorPosts
- The topic ‘Make widget fullwidth above footer’ is closed to new replies.