WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider
[resolved] second unwanted slider floating to the right of content (6 posts)

  1. rzul
    Member
    Posted 1 year ago #

    I have added this code to the home page template. just below the header and I thought it was working correctly. Then I noticed a tiny little second instance of the slider on the far right of the content.

    <div id="slider"><?php echo do_shortcode('[promoslider height="300px"]') ?></div>

    The second instance of the slider is hidden to the right side of my content and you do not see it until you bring the content margin in narrower or add a sidebar. The narrower I make the content, the larger the second instance of the slider gets.

    Does anyone know why are there two sliders being called into the page?

    <body class="home page page-id-126 page-template page-template-page-templatesfront-page-php logged-in admin-bar template-front-page custom-background-empty custom-font-enabled customize-support">
    <div id="page" class="hfeed site">
    <header id="masthead" class="site-header" role="banner">
    <!-- #masthead -->
    <div id="main" class="wrapper">
    <div id="slider">
    <div class="promo_slider_wrapper random default_nav no_pause">
    <div class="promo_slider auto_advance" style=" height:300px;">
    <span class="promo_slider_time_delay" style="display:none;">10</span>
    <div class="panel panel-1" style="display: none;">
    <div class="panel panel-2 current" style="display: block;">
    <div class="panel panel-3" style="display: none;">
    <div class="panel panel-4" style="display: none;">
    <div class="panel panel-5" style="display: none;">
    <div class="panel panel-6" style="display: none;">
    <div class="promo_slider_nav" style="display: block;">
    <div class="clear"></div>
    </div>
    </div>
    </div>
    <div id="primary" class="site-content">
    <div id="content" role="main">
    <article id="post-126" class="post-126 page type-page status-publish hentry">
    <!-- #post -->
    </div>
    <!-- #content -->
    </div>
    <!-- #primary -->
    <div id="slider">
    <div class="promo_slider_wrapper random default_nav no_pause">
    <div class="promo_slider auto_advance" style=" height:300px;">
    <span class="promo_slider_time_delay" style="display:none;">10</span>
    <div class="panel panel-1" style="display: none;">
    <div class="panel panel-2" style="display: none;">
    <div class="panel panel-3" style="display: none;">
    <div class="panel panel-4" style="display: none;">
    <div class="panel panel-5" style="display: none;">
    <div class="panel panel-6 current" style="display: block;">
    <div class="promo_slider_nav" style="display: block;">
    <div class="clear"></div>
    </div>
    </div>
    </div>
    <div id="secondary" class="widget-area" role="complementary">
    <!-- #secondary -->
    </div>
    <!-- #main .wrapper -->
    <footer id="colophon" role="contentinfo">
    <!-- #colophon -->
    </div>
    <!-- #page -->
    <script src="http://alaskapaincenter.com/wp-includes/js/admin-bar.min.js?ver=3.5.1" type="text/javascript">
    <script src="http://alaskapaincenter.com/wp-content/themes/childtheme/js/navigation.js?ver=1.0" type="text/javascript">
    <script type="text/javascript">
    <script src="http://alaskapaincenter.com/wp-content/plugins/promotion-slider/js/promo_slider.js?ver=3.5.1" type="text/javascript">
    <script type="text/javascript">
    <div id="wpadminbar" class="" role="navigation">
    </body>
    </html>

    http://wordpress.org/extend/plugins/promotion-slider/

  2. Micah Wood
    Member
    Plugin Author

    Posted 1 year ago #

    @rzul,

    Is there any chance you could show me your actual PHP template? The HTML isn't really going to help much.

  3. rzul
    Member
    Posted 1 year ago #

    Of course, my apologies. Thank you for taking a look. Will the home-page.php template be sufficient? I have made a childtheme for twenty-twelve. I am now wondering if I made a CSS change that is causing the problem. I may reinstall the plugin and start over if nothing else.

    <?php
    /**
     * Template Name: Front Page Template
     *
     * Description: A page template that provides a key component of WordPress as a CMS
     * by meeting the need for a carefully crafted introductory page. The front page template
     * in Twenty Twelve consists of a page content area for adding text, images, video --
     * anything you'd like -- followed by front-page-only widgets in one or two columns.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    
    get_header(); ?>
      <div id="slider"><?php echo do_shortcode('[promoslider height="300px"]') ?></div>
    	<div id="primary" class="site-content">
    		<div id="content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php if ( has_post_thumbnail() ) : ?>
    					<div class="entry-page-image">
    						<?php the_post_thumbnail(); ?>
    					</div><!-- .entry-page-image -->
    				<?php endif; ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    <div id="slider"><?php echo do_shortcode('[promoslider height="300px"]') ?></div>
    
    <?php get_sidebar( 'front' ); ?>
    <?php get_footer(); ?>
  4. Micah Wood
    Member
    Plugin Author

    Posted 1 year ago #

    I couldn't help but notice that you have two sliders configured in this template... so I am assuming this is the issue? Or were you wanting two sliders with different content in them?

  5. rzul
    Member
    Posted 1 year ago #

    Wow! I looked at this a hundred times. Can't believe I failed to see my mistake. Thoroughly embarrassing. If I could delete this thread, I would. Thank you for pointing out my error. Obviously, that was the problem.

  6. Micah Wood
    Member
    Plugin Author

    Posted 1 year ago #

    No worries. Sometimes you just need an extra set of eyes on the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic