Grow your CSS skills. Land your dream job.

Help Customizing WP PHP Files in Dancefloor Theme

  • # June 10, 2012 at 1:49 am

    Hey guys! I did a search and found SOME helpful information on the issues I’m having, but there are some left I still need help to resolve.

    A client of mine purchased this GorillaThemes Dancefloor theme for me to alter/configure for them. They didn’t buy any support with their purchase, so I’m kinda left having to figure this out.

    DEMO HERE: Dancefloor WordPress Theme

    1) I would like the home page to look reminiscent to the home/main page of the demo. I figured that by going into “Settings>Reading” and setting the static Front and Posts page that everything would set itself up correctly like it normally does. That’s FAR form the case. It’s like they’re setting you up to fail without purchasing their support plan.

    When I set the static Home Page, this is what I get:
    Funky Home/Front Page

    And when I set the static Posts Page, this is what I get:
    Funky Blog/Posts Page

    I’m still fairly new to WordPress, and need a bit of help moving things around. I would like for the Home/Front Page to have in this order from top to bottom the:

      Image Slider
      Gallery
      3 Recent Events
      3 Recent Posts

    And I’d like the Blog/Posts page to JUST display the posts.

    Here’s the PHP for each respective page, so can someone please give me a quick run through of what to add, delete or keep? And if you need more info on other coding, let me know and I can post it.

    PAGE.PHP:

    < ?php include(TEMPLATEPATH."/header-single.php");?>

    < ?php if ( get_option('layout') == 'right_sidebar' ) echo '
    '; else echo '
    ';?>
    < ?php if (have_posts()) : ?>
    < ?php while (have_posts()) : the_post(); ?>



    < ?php if ( has_post_thumbnail() ) {
    $mypostimage = the_post_thumbnail( 'large', array('class' => 'featsingle' , 'alt' => get_the_title() , 'title' => get_the_title() ));
    the_content(); } else { the_content(); } ?>




    < ?php endwhile; ?>
    < ?php else : ?>
    < ?php endif; ?>

    < ?php get_sidebar(); ?>
    < ?php get_footer(); ?>

    INDEX.PHP:

    < ?php get_header(); ?>


    < ?php query_posts(array('post_type'=>'featured','posts_per_page' => '18'));?>
    < ?php if ( have_posts() ) while ( have_posts() ) : the_post();
    $large = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
    $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'thumbnail');?>
    ">< ?php the_title();?>

    < ?php the_title();?>


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




    < ?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Photo Gallery') ) : ?>

    < ?php endif; ?>

    < ?php
    if ( function_exists('dynamic_sidebar') )
    echo '
    ';
    dynamic_sidebar('Widgets Home');
    echo '
    ';
    ?>
    < ?php if ( get_option('layout') == 'right_sidebar' ) echo '
    '; else echo '
    ';?>

    < ?php if (have_posts()) :while (have_posts()) :the_post();?>



    < ?php if ( has_post_thumbnail() ) {
    $mypostimage = the_post_thumbnail( 'thumbnail', array('class' => 'homethumb' , 'alt' => get_the_title() , 'title' => get_the_title() ));
    the_excerpt('FULL ARTICLE »');} else {the_excerpt('FULL ARTICLE »'); } ?>





    < ?php endwhile;endif; ?>


    < ?php get_sidebar(); ?>
    < ?php get_footer(); ?>
    # June 11, 2012 at 3:11 pm

    Any WP gurus out there that can help me and help me to understand what’s going on as it’s changed?

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".