Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    #1087700

    Hey webWahine,

    Please try the following in Quick CSS under Enfold->General Styling:

    #ctaboxwrapper .container {
      padding:0 !important;
    }

    Best regards,
    Rikard

    #1087788

    Hi, Rikard
    That’s already in my code – please see above.

    #1088178

    Hi,

    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,
    Rikard

    #1088422

    Sorry, 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 */
    }
    #1088986

    Hi,

    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,
    Rikard

    #1089688

    Sorry, 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 :)

    #1091199

    Hi,

    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,
    Ismael

    #1092723

    Ah, sorry, I must have tried an id first, then moved to a class; that makes sense! Looking too closely at this one :) Thanks, Ismael!

    #1093106

    Hi,

    Did you need additional help, or shall we close this topic?

    Best regards,
    Jordan Shannon

    #1093149

    Go haead and close this, please :)

    #1093198

    Hi,

    Alright. Glad we could help. We’ll close the thread now.

    Have a nice day!

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Make widget fullwidth above footer’ is closed to new replies.