Skip to content

Instantly share code, notes, and snippets.

@codyogden
Created October 24, 2017 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codyogden/8bbb3d86030206c666c273f8ddf91cd3 to your computer and use it in GitHub Desktop.
Save codyogden/8bbb3d86030206c666c273f8ddf91cd3 to your computer and use it in GitHub Desktop.
thing
<?php
$backgroundImage = get_sub_field('background_image');
$titleText = get_sub_field( 'title_text' );
$subtitleText = get_sub_field( 'subtitle_text' );
$buttonText = get_sub_field( 'button_text' );
$buttonLink = get_sub_field( 'button_link' );
?>
<div class="slide slide-basic" style="background-image:url('<?php echo $backgroundImage; ?>');">
<div class="slide-basic-content">
<h1 class="slide-basic-title">
<span class="slide-basic-title-text"><?php echo $titleText; ?></span>
<small class="slide-basic-subtitle-text"><?php echo $subtitleText; ?></small>
</h1>
<a href="<?php echo $buttonLink; ?>" target="_self" class="slide-basic-button" role="button">
<i class="slide-basic-button-icon fa fa fa-angle-right"></i>
<span class="slide-basic-button-text">Learn More</span>
</a>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment