Need Help Editing Home Page Code

  • Unknown's avatar

    Hey, I have recently started a website (http://10tg.net/wp/) and am wanting it to be a flash game-website. So far it is all going well, however I do have one issue. I am using the theme “Leetpress” and I have changed the home-page to static so I can write what I want on it. Theme theme came with a “slider” originally on the front page and recent posts. I would like the static homepage to display this slider but make it that I can edit the surrounding content. I have looked in the settings and have found the original code for the pre-set home page here:

    <?php get_header(); ?>
    <?php // THEME UPLOADED BY Darth Master // ?>
    <?php
    $slider_number = get_option('lp_slides_number');
    $args = array( 'post_type' => 'slider', 'showposts' => $slider_number );
    $slider_loop = new WP_Query( $args );
    if ($slider_loop->have_posts()) : ?>
    <!-- BEGIN SLIDER -->
    <div class="slider">

    <div class="sliderContent">

    <?php while ( $slider_loop->have_posts() ) : $slider_loop->the_post(); $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, '' ); ?>
    <div class="featured-item" style="background:<?php echo get_post_meta($post->ID, 'feature_bg', true); ?> url(<?php echo $src[0]; ?>) no-repeat center; height:280px;">

    <div class="featured-inner">

    <div class="featured-inner">

    <div class="featured-arrows"></div>
    <h1>ID, 'feature_url', true); ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h1>
    <p class="featured-meta">By <?php the_author(); ?>, <?php the_time( get_option('date_format') ); ?></p>

    </div>

    </div>

    </div>
    <?php endwhile;
    wp_reset_query(); ?>

    </div>

    <div class="top-overlay"></div>
    <div class="bottom-overlay"></div>

    </div>
    <!-- END SLIDER -->
    <?php endif; ?>

    <!-- BEGIN MAIN WRAPPER -->
    <div id="main-wrapper">

    <!-- BEGIN MAIN -->
    <div id="main">

    <!-- BEGIN NEWS WRAPPER -->
    <div id="news-wrapper">

    <h3 class="section-title">Latest News</h3>

    <!-- BEGIN NEWS ITEMS -->
    <?php

    if(get_option('lp_include_reviews') == "true") { $include_reviews = "'reviews',"; }
    if(get_option('lp_include_videos') == "true") { $include_videos = "'videos',"; }
    if(get_option('lp_include_screenshots') == "true") { $include_screenshots = "'screenshots',"; }

    query_posts( array(
    'post_type' => array(
    'post',
    $include_reviews,
    $include_screenshots,
    $include_videos
    ),
    'paged' => $paged )
    );
    ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <?php

    if ( get_post_type() == 'reviews' ) : ?>

    <?php include( TEMPLATEPATH . '/includes/show-reviews-frontpage.php' ); ?>

    <?php elseif ( get_post_type() == 'videos' ) : ?>

    <?php include( TEMPLATEPATH . '/includes/show-videos-frontpage.php' ); ?>

    <?php elseif ( get_post_type() == 'screenshots' ) : ?>

    <?php include( TEMPLATEPATH . '/includes/show-screenshots-frontpage.php' ); ?>

    <?php else: ?>

    <?php include( TEMPLATEPATH . '/includes/show-posts.php' ); ?>

    <?php endif; ?>

    <?php endwhile; ?>
    <?php kriesi_pagination(); ?>
    <?php wp_reset_query(); ?>

    <?php endif; ?>
    <!-- END NEWS ITEMS -->

    </div>
    <!-- END NEWS WRAPPER -->

    </div>
    <!-- END MAIN -->

    <?php get_sidebar(); ?>

    <?php get_footer(); ?><?php // THEME UPLOADED BY Darth Master // ?>

    I would like to get it so I can have the slide-show like banner to exist but for the main content to be editable (as a static homepage). May someone please assist me as I am new to wordpress and how it works.

    Cheers, Corey

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘Need Help Editing Home Page Code’ is closed to new replies.