• 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 file

    you know why it it happening? and you think it will work?

    thanks!

    https://wordpress.org/plugins/meteor-slides/

Viewing 1 replies (of 1 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    That get_header function is important, you’re going to need that on every page as it will be loading the head of your page and also scripts and things for WordPress.

    It depends on your theme, but you probably want to edit your header.php file. Start by just adding the slideshow template tag and getting it setup how you want it sitewide, and then you can narrow it down to just the homepage with a conditional.

Viewing 1 replies (of 1 total)
  • The topic ‘Header image slide to my homepage’ is closed to new replies.