• Hikescdnrckys

    (@hikescdnrckys)


    I am having difficulty getting the NextGen Flex Slider template plugin to work with the attitude theme. The short code that I am supposed to use is:

    [nggallery id=x template="sliderview"]

    I have tried to use the instructions found in the post earlier in this forum at here

    So creating a child-header-extensions.php and a child functions.php, and using the child functions php to override the call to header-extensions.php and then using the shortcode in the child-header-extensions php with the following to implement the slider:

    <?php if ( is_page( 'home' )) echo do_shortcode('[nggallery id=2 template="3dfluxsliderview"]'); ?>

    But I just can’t get the slider to work. I am wondering if there is something in my attitude theme that is overriding the slider plug-in? Or am I just putting the code in the wrong place in the child-header-extensions.php. I placed it right before the get_header_image in the attitude_headerdetails function as below:

    </div><!-- .container -->
        <?php if ( is_page( 'home' )) echo do_shortcode('[nggallery id=2 template="3dfluxsliderview"]'); ?>
        <?php $header_image = get_header_image();
    			if( !empty( $header_image ) ) :?>
    				<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>">
    			<?php endif; ?>
    	<?php

    This all seems very complicated to get a simple slider to work. What am I doing wrong? Thanks.

The topic ‘NextGen Flex Slider won't work’ is closed to new replies.