Forums

Portfolio Slideshow
[resolved] Portfolio Slideshow Non-functional (5 posts)

  1. bethneibert
    Member
    Posted 5 months ago #

    in custom page/template in TwentyTen theme. I have verified each plugin, don't have Google Analytics and it will work on a default template. Does that mean I'm missing something in my template code? Here it is:

    <?php
    /**
    Template Name: Background Only

    */
    ?>
    <html>
    <head>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <style type="text/css">
    body { background-color: #cccccc; background-image: url('http://pagesbybeth.com/wp-content/uploads/2010/10/bg.jpg'); background-repeat: repeat-y; background-position: top center; background-attachment: scroll; }
    #page-content { width: 520px; margin: 10px auto; }
    #page-content p { font-size: 1em; font-family: Georgia; line-height: 1.5em; text-align: justify; }
    </style>
    <title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
    <?php wp_head(); ?>
    </head>

    <body>
    <?php while (have_posts()) : the_post(); ?>
    <div id="page-content">
    <?php the_content(); endwhile; ?>
    </div>
    </body>
    </html>

    Here's the URL to my page, however, it may not be this way long as I'm up against a deadline and have to go a different route to create a slide show unless you get me an answer ASAP:
    http://www.pagesbybeth.com/port-to-pass-adventure-corridorwelcome/

    Thank you! I appreciate your help.
    Beth

    http://wordpress.org/extend/plugins/portfolio-slideshow/

  2. Dalton Rooney
    Member
    Posted 5 months ago #

    Your template is missing the wp_head() and wp_footer() functions. These are required in any WP template for plugins to work properly.

  3. Dalton Rooney
    Member
    Posted 5 months ago #

    Hope it worked out. :-/

  4. bethneibert
    Member
    Posted 5 months ago #

    Hey Dalton,
    Sorry for the delay in responding.

    The header and footer are missing because I don't want them in my page. I'm actually using the content with an iframe in another forum. Is there anything I can do to change the code so it will work? Thanks for your help!

    Beth

  5. Dalton Rooney
    Member
    Posted 5 months ago #

    You don't need to include the header.php and footer.php files, but you do need the wp_head() and wp_footer() functions, otherwise the scripts won't load. Take a look in the header and footer files of twentyeleven for examples. These functions are required for any plugin that requires it's own javascript or CSS to work.

Reply

You must log in to post.

About this Plugin

About this Topic