-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f8754f
commit f5ab63c
Showing
4 changed files
with
38 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
<?php get_header(); ?> | ||
|
||
<?php $query = new WP_Query('pagename=home'); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); ?> | ||
<?php the_title();?> | ||
|
||
<!--HERO--> | ||
|
||
<section id="hero"> | ||
<ul class="slides"> | ||
|
||
<?php if( have_rows('slides') ): while ( have_rows('slides') ) : the_row(); ?> | ||
|
||
<li style="background: url('<?php the_sub_field('slide_image'); ?>') no-repeat; background-size: cover;"> | ||
<div class="container"> | ||
<?php the_sub_field('slide_content'); ?> | ||
</div> | ||
</li> | ||
|
||
<?php endwhile; endif; ?> | ||
|
||
</ul> | ||
</section> | ||
|
||
|
||
<?php } } wp_reset_postdata(); ?> | ||
|
||
<?php get_footer(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"> | ||
<p><input type="text" class="field" name="s" id="s" placeholder="Search" /> | ||
<input type="submit" class="submit" name="submit" value="search" /></p> | ||
<input type="text" class="field" name="s" id="s" placeholder="Search" /> | ||
<input type="submit" class="submit" name="submit" value="search" /> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters