Static page on frontpage

Home Forums Theme Support Static page on frontpage

  • Question status -
  • Andreas Pahmp
    Participant

    I want to use a static page on my frontpage. But when I chose it the slider and thumbnail-picture disappear.

    How can I use a static page and stil have the slider and thumbnail-pictures on top?

    #5641
    Support Staff
    Keymaster

    Hi Andreas,

    open page.php and paste this:

    <?php 
    if ( is_front_page() ) :
    
    	if ( get_option('swt_slider') == 'Display' ) 
    		include( trailingslashit( get_template_directory() ) . 'includes/slide.php' );
    
    	if ( get_option('swt_gallery') == 'Display' ) 
    		include( trailingslashit( get_template_directory() ) . 'includes/gallery.php');	
    	
    endif;
    ?>

    after <?php get_header(); ?>.

    Let us know if you have any problems.

    Best regards,
    Sinisa

    #5642

You must be logged in to reply to this topic.

Viewing 2 posts - 1 through 2 (of 2 total)