WordPress.org

Forums

Can't Edit Homepage (4 posts)

  1. zhoward89
    Member
    Posted 1 year ago #

    I have been using wordpress for awhile however I cannot figure out how to edit my homepage for the website http://www.orange-restoration.com. The homepage is a static page, not a post, but when I open the home page in the pages tab there is nothing for me to edit in both the visual and text tabs. I have a SEO plugin installed and the meta-tags and disc. I entered onto the homepage show up in the source code so I am confident this is the correct home page. Does anyone know why there wouldn't be anything showing up for me to edit on the homepage? Once again my website is http://www.orange-restoration.com anyhelp would be greatly appreciated. Thanks.

  2. graphical_force
    Member
    Posted 1 year ago #

    Did you have someone build your website for you? Is that page using a template? You can see it in a drop down on the right if it is.

  3. zhoward89
    Member
    Posted 1 year ago #

    Yes, the page is using a template. The main thing I want to change in the pictures in the slider on the homepage of the website. Here is the code from the template. I see some code about the slider but nowhere where it says which pictures are showing, content, etc.

    <?php
    /*
    Template Name: Homepage
    Author: Yaron Guez
    */
    ?>

    <?php get_header(); ?>

    <div id="main-fold">
    <div id="main-left">
    <div id="slider">
    <div id="left-button"></div>
    <div id="slides">
    <?php

    $args = array(
    'post_type' => 'slides',
    'numberposts' => -1);

    $the_query = new WP_Query( $args );
    $ctr = 0;

    // The Loop
    while ( $the_query->have_posts() ) : $the_query->the_post();
    ?>
    <div id="slides">
    <div class="item" id="slide-<?php echo $ctr ?>">
    <div class="<?php if (has_post_thumbnail()) { ?>slide-left<?php } else { ?>slide-text<?php } ?>">
    <h2><?php the_title();?></h2>
    <?php the_content();?>
    </div>
    <?php if (has_post_thumbnail()) : ?>
    <?php the_post_thumbnail('slider');?>
    <?php endif; ?>
    <div class="fix"></div>
    </div> <!-- /item -->
    </div><!--/#slides -->
    <?php
    $ctr++;
    endwhile;

    // Reset Post Data
    wp_reset_postdata();
    ?>
    </div><!--/slides-->
    <div id="right-button"></div>
    </div><!--/slider -->
    </div><!-- /main-left -->

    <div id="main-right">
    <img id="arrow-white" src="<?php bloginfo('stylesheet_directory');?>/images/title-arrow.png"/>
    <h2>Speak to an Expert</h3>
    <script type="text/javascript" src="http://form.jotform.me/jsform/92640718225"></script>
    </div>
    <div class="fix"></div>
    </div> <!-- /main-fold-->

    <div id="video-main">
    <div id="video-left">
    <?php
    $orange_does_it_right = new WP_Query();
    $orange_does_it_right->query('pagename=orange-does-it-right');
    while ($orange_does_it_right->have_posts()) : $orange_does_it_right->the_post(); ?>
    <h2><?php the_title(); ?></h2>

    <p><?php the_content(); ?></p>
    <?php endwhile; ?>
    </div><!-- /video-left -->
    <div id="video-right">
    <?php
    $homepage_video = new WP_Query();
    $homepage_video->query('pagename=homepage-video');
    while ($homepage_video->have_posts()) : $homepage_video->the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>
    <?php //<iframe src="http://player.vimeo.com/video/7152795?title=0&byline=0&portrait=0" width="640" height="352" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe> ?>
    </div><!-- /video-right -->
    <div class="fix"></div>
    <div id="video-bottom-ribbon"></div>
    </div><!-- /video-main -->

    <?php //wp_nav_menu( array( 'depth' => 1, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'mid-nav', 'theme_location' => 'mid', 'walker'=>new description_walker()) ); ?>
    <div id="featured-services">
    <h1 style="display: none; visibility: hidden;">Water Damage & Construction Services in San Diego</h1>
    <h1>Featured Services</h1>
    <div class="blocks">

    <?php
    $args = array(
    'post_type'=>'page',
    'showposts'=> 4,
    'post_parent'=> 6,
    'order'=>'asc',
    'orderby'=>'menu_order'
    );

    $the_query = new WP_Query( $args );
    $ctr = 0;

    // The Loop
    while ( $the_query->have_posts() ) : $the_query->the_post();
    ?>
    <div class="block">
    <h2 class="service-<?php the_ID(); ?>">" title="<?php the_title();?>"><?php the_title();?></h2>
    <p><?php echo the_excerpt(); ?></p>

    </div>

    <?php
    $ctr++;
    endwhile;

    // Reset Post Data
    wp_reset_postdata();

    ?>
    </div>
    /services" class="all-services-link">See All Services »
    <div class="fix"></div>
    </div>

    <div id="about-orange">
    <h1>More Information</h1>
    <div class="blocks">
    <?php
    $args = array(
    'post_type'=>'page',
    'showposts'=> 3,
    'post_parent'=> 8,
    'order'=>'asc',
    'orderby'=>'menu_order'
    );

    $the_query = new WP_Query( $args );
    $ctr = 0;

    // The Loop
    while ( $the_query->have_posts() ) : $the_query->the_post();
    ?>
    <div class="block">
    <div class="title-arrow"></div>
    <h2>" title="<?php the_title();?>"><?php the_title();?></h2>
    <p><?php echo the_excerpt(); ?></p>

    </div>

    <?php
    $ctr++;
    endwhile;

    // Reset Post Data
    wp_reset_postdata();

    ?>
    </div>
    <div class="fix"></div>
    </div>
    <div xmlns:v="http://rdf.data-vocabulary.org/#" style="padding-left: 50px;">
    <span typeof="v:Breadcrumb">
    Home »
    </span>
    <span typeof="v:Breadcrumb">
    About Us »
    </span>
    <span typeof="v:Breadcrumb">
    Contact Us
    </span>
    </div>
    <?php get_footer(); ?>

  4. graphical_force
    Member
    Posted 1 year ago #

    It looks like the slider is using thumbnails from posts.

    <?php the_post_thumbnail('slider');?>

    It also says to use custom post types that are slides.

    Do you have a menu item called slides on the left in the admin section?

Topic Closed

This topic has been closed to new replies.

About this Topic