Header image slide to my homepage
-
Hey there! i’m trying to insert a slide to my header (and make it fullscreen) just for my home page.
what i did was this, on my index.php
<?php if ( is_home() ): if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow();} ?>
else :
get_header();
<?php endif; ?>and the entire code of index.php:
<?php if ( is_home() ): if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow();} ?>
else :
get_header();
<?php endif; ?><?php if(is_home) { ?>
<div id=”primary” class=”content-area”>
<main id=”main” class=”site-main” role=”main”><?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( ‘template-parts/content’, get_post_format() );
?><?php endwhile; ?>
<?php the_posts_navigation(); ?>
<?php else : ?>
<?php get_template_part( ‘template-parts/content’, ‘none’ ); ?>
<?php endif; ?>
</main><!– #main –>
</div><!– #primary –>get_footer();
It’s not working because of this error:
Syntax error – unexpected end of fileyou know why it it happening? and you think it will work?
thanks!
- The topic ‘Header image slide to my homepage’ is closed to new replies.