Hero
A0011
DemoCode With ACF Integration
HTML
<!-- A0011 ------------------------------------------------> <?php if ( have_rows( 'a0011' ) ) : ?> <?php while ( have_rows( 'a0011' ) ) : the_row();?> <section id="a0011" style="background-image: url('<?php echo get_sub_field('background_image'); ?>')"> <div class="bg_semi"> <div class="container"> <div class="row"> <div class="col-12"> <div class="wa_text"><?php echo get_sub_field('title'); ?></div> <div class="wa_sub_message"><?php echo get_sub_field('sub_message'); ?></div> <a href="<?php echo get_sub_field('button_link'); ?>"><div class="wa_final_statement"><?php echo get_sub_field('button_text'); ?></div></a> </div> </div> </div> </div> </section> <?php endwhile; ?> <?php endif; ?> <!-- A0011 END ------------------------------------------------>
CSS
/* A0011 ------------------------------------------------------*/ @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap'); #a0011{ min-height: 500px; background-repeat: no-repeat; background-size: cover; color: #FFF; text-align: center; position: relative; background-position-x: center; } #a0011 .bg_semi{ position: absolute; bottom: 0; min-height: 200px; width: 100%; text-align: center; margin-bottom: 50px; } #a0011 .bg_semi .wa_text{ margin-top: 20px; font-size: 29px; font-weight: 700; font-family: initial; line-height: 1.2em; font-family: Oswald; display: inline-block; padding-bottom: 15px; border-bottom: solid 2px #FFF; } #a0011 .bg_semi .wa_sub_message{ width: fit-content; margin-left: auto; margin-right: auto; padding-left: 10%; padding-right: 10%; margin-top: 15px; padding-top: 5px; font-size: 18px; color: #ffffff; } #a0011 .bg_semi .wa_final_statement{ font-weight: 800; font-size: 20px; color: #FF5722; background-color: #FFF; width: fit-content; margin-left: auto; margin-right: auto; padding: 5px 35px; margin-top: 20px; border-radius: 5px; border: solid 2px #FF9800; transition: .5s; } #a0011 .bg_semi .wa_final_statement:hover{ background-color: #00244a; color: #FFF; padding: 5px 45px; } /* Medium devices (tablets, 768px and up)*/ @media (min-width: 768px) { #a0011 .bg_semi .wa_text{ font-size: 60px; } #a0011 .bg_semi .wa_sub_message{ font-size: 22px; } } /* A0011 END -------------------------------------------------------*/
Code Only (Without ACF Integration)
HTML
<!-- A0011 ------------------------------------------------> <section id="a0011" style="background-image: url('Your Image')"> <div class="bg_semi"> <div class="container"> <div class="row"> <div class="col-12"> <div class="wa_text">Title</div> <div class="wa_sub_message">Message</div> <a href="LINK"><div class="wa_final_statement">Button Text</div></a> </div> </div> </div> </div> </section> <!-- A0011 END ------------------------------------------------>
CSS
/* A0011 ------------------------------------------------------*/ @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap'); #a0011{ min-height: 500px; background-repeat: no-repeat; background-size: cover; color: #FFF; text-align: center; position: relative; background-position-x: center; } #a0011 .bg_semi{ position: absolute; bottom: 0; min-height: 200px; width: 100%; text-align: center; margin-bottom: 50px; } #a0011 .bg_semi .wa_text{ margin-top: 20px; font-size: 29px; font-weight: 700; font-family: initial; line-height: 1.2em; font-family: Oswald; display: inline-block; padding-bottom: 15px; border-bottom: solid 2px #FFF; } #a0011 .bg_semi .wa_sub_message{ width: fit-content; margin-left: auto; margin-right: auto; padding-left: 10%; padding-right: 10%; margin-top: 15px; padding-top: 5px; font-size: 18px; color: #ffffff; } #a0011 .bg_semi .wa_final_statement{ font-weight: 800; font-size: 20px; color: #FF5722; background-color: #FFF; width: fit-content; margin-left: auto; margin-right: auto; padding: 5px 35px; margin-top: 20px; border-radius: 5px; border: solid 2px #FF9800; transition: .5s; } #a0011 .bg_semi .wa_final_statement:hover{ background-color: #00244a; color: #FFF; padding: 5px 45px; } /* Medium devices (tablets, 768px and up)*/ @media (min-width: 768px) { #a0011 .bg_semi .wa_text{ font-size: 60px; } #a0011 .bg_semi .wa_sub_message{ font-size: 22px; } } /* A0011 END -------------------------------------------------------*/
Image size: 1600px X 500px
A0006
Code With ACF Integration
HTML
<!-- A0006 -- START ------------------------------> <?php if ( have_rows( 'a0006' ) ) : ?> <?php while ( have_rows( 'a0006' ) ) : the_row();?> <section id="a0006" style="background-image: url('<?php echo get_sub_field('image'); ?>')"> </section> <?php endwhile; ?> <?php endif; ?> <!-- A0006 -- END ------------------------------>
CSS
/* A0006 Start -----------------------------------*/ #a0006{ min-height: 500px; background-repeat: no-repeat; background-size: cover; background-position-x: center; } /* A0006 END -------------------------------------*/
Code Only (Without ACF Integration)
HTML
<!-- A0006 -- START ------------------------------> <section id="a0006" style="background-image: url('URL HERE')"> </section> <!-- A0006 -- END ------------------------------>
CSS
/* A0006 Start -----------------------------------*/ #a0006{ min-height: 500px; background-repeat: no-repeat; background-size: cover; background-position-x: center; } /* A0006 END -------------------------------------*/
Image: 1600 X 540 px
Slider SA
Code With ACF Integration
HTML
<!-- SA --------------------------------------> <?php if ( have_rows( 'sa' ) ) : ?> <?php while ( have_rows( 'sa' ) ) : the_row();?> <section class="wa_sa" style="background-image: url('<?php echo get_sub_field('background_image'); ?>')"> <div class="bg_semi"> <div class="container"> <div class="row"> <div class="col-12"> <div class="wa_text"><?php echo get_sub_field('title'); ?></div> <div class="wa_sub_message"><?php echo get_sub_field('sub_message'); ?></div> <div class="wa_final_statement"><?php echo get_sub_field('final_statement'); ?></div> </div> </div> </div> </div> </section> <?php endwhile; ?> <?php endif; ?> <!-- SA End ----------------------------------->
CSS
/*-- SA --------------------------------------*/ .wa_sa{ min-height: 700px; background-repeat: no-repeat; background-size: cover; color: #FFF; text-align: center; position: relative; background-position-x: center; } .wa_sa .bg_semi{ position: absolute; bottom: 0; min-height: 200px; background-color: #000000b3; width: 100%; text-align: center; } .wa_sa .bg_semi .wa_text{ margin-top: 20px; font-size: 2.7em; font-weight: 900; font-family: initial; line-height: 1.2em; } .wa_sa .bg_semi .wa_sub_message{ width: fit-content; margin-left: auto; margin-right: auto; padding-left: 10%; padding-right: 10%; border-top: solid 2px #FFF; margin-top: 15px; padding-top: 15px; } .wa_sa .bg_semi .wa_final_statement{ font-style: italic; font-weight: 200; margin-top: 15px; margin-bottom: 15px; } /*-- SA END --------------------------------------*/
Image sample size: 1600px X 700px but can change.