How to remove the slider menu and replace it?
-
Hi, I would like to know how to remove the sliding menu which is set by default to my front page. I’d like to make it gone and make it look like all the other pages. I found out I have to edit header.php file, but unfortunately I have very small understanding of PHP. I am using University theme. Thank you in advance for all tips.
Probably something in here needs to be edited<?php if (is_front_page()) : ?> <?php $args = array( 'posts_per_page' =>-1, 'post_type' => 'any', 'post__not_in' => get_option( 'sticky_posts' ), 'meta_query' => array( array( 'key' => '_university-slider-checkbox', 'value' => 'yes' ) ) ); $slider_posts = new WP_Query($args); ?> <div id="slidecontainer"> <div class="camera_wrap" id="camera_wrap_1"> <?php if($slider_posts->have_posts()) : ?> <?php while($slider_posts->have_posts()) : $slider_posts->the_post() ?> <div data-thumb="<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'slidethumb' ); ?><?php echo $image[0]; ?>" data-src="<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'slideimage' ); ?><?php echo $image[0]; ?>" data-link="<?php if(get_post_meta($post->ID, 'slidelink', true)): ?> <?php echo get_post_meta($post->ID, 'slidelink', true); ?> <?php else : ?> <?php the_permalink(); ?> <?php endif; ?>"> <div class="fadeIn camera_effected"> <?php if(get_post_meta($post->ID, 'slidetitle', true)): ?> <?php echo get_post_meta($post->ID, 'slidetitle', true); ?> <?php else : ?> <?php the_title(); ?> <?php endif; ?> </div> </div> <?php endwhile ?> <?php wp_reset_postdata(); ?> <?php endif ?> </div> </div>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to remove the slider menu and replace it?’ is closed to new replies.