/    Sign up×
Community /Pin to ProfileBookmark

additional tab&scroller not showing

So far no one has been able to answer this so if you can I guess your a genius:
I have 3 tabs and scrollers and want 4 so I added an additional tab and slider/scroller but it’s not showing. I added a scroller-4.php, and added 4 scrollers in the options.php and added the styles for the scroller 4 in .css but there is still no scroller 4 showing in design, you can see here: [url]http://www.organicwebdesigns.co[/url] and you can see the code I added below:

I added this code to scroller-4.php:

<div style=”position: relative; z-index: 4;”>
<div class=”prev”></div>
<div class=”next”></div>
</div>
<div style=”position: relative; z-index: 1;” id=”slider-nav”> <a href=”#” class=”slider-link-1″>Web Design</a> <a href=”#” class=”slider-link-2″>Promotion</a> <a href=”#” class=”slider-link-3″>Management</a> <a href=”#” class=”slider-link-4″>The Full Package</a></div>
<div id=”sections”>
<ul>
<li>
<div class=”slider-left-2″>
<div class=”slider-left”>
<h2>Proper Design – Real Growth</h2>
<img src=”<?php bloginfo(‘template_directory’); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif” alt=”line” class=”slider-line” />
<div style=”clear: both;”></div>
Specialised websites to get you more business.. Focusing on what’s important for best results. Clever content and well planned design will make your website a success and bring you to a new level </div>
<?php if (get_option(‘ebusiness_slider_1_readmore’) == ‘false’) { ?>
<?php { echo ”; } ?>
<?php } else { echo ‘<a href=”‘ . $ebusiness_slider_1_readmore_url . ‘”><img src=”‘ . get_bloginfo(‘template_directory’) . ‘/images/readmore-‘ . $ebusiness_color_scheme . ‘.gif” alt=”read more” class=”readmore” /></a>’; } ?>
</div>
<div class=”slider-right”>

<?php if (get_option(‘ebusiness_slider_1_type’) == ‘Video’) : ?>
<?php echo $ebusiness_slider_1_video; ?>
<?php else : ?>
<img src=”http://organicwebdesigns.co/wp-content/themed/eBusiness/images/webpic_s1.png” alt=”slider image” class=”slider_image” />
<?php endif; ?>

</div>
</li>
<li>
<div class=”slider-left-2″>
<div class=”slider-left”>
<h2>Better Than Your Competitor?</h2>
<img src=”<?php bloginfo(‘template_directory’); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif” alt=”line” class=”slider-line” />
<div style=”clear: both;”></div>
Google rewards natural growth. With a clear strategy and quality seo you’ll see yourself ahead of the game </div>
<?php if (get_option(‘ebusiness_slider_2_readmore’) == ‘false’) { ?>
<?php { echo ”; } ?>
<?php } else { echo ‘<a href=”‘ . $ebusiness_slider_2_readmore_url . ‘”><img src=”‘ . get_bloginfo(‘template_directory’) . ‘/images/readmore-‘ . $ebusiness_color_scheme . ‘.gif” alt=”read more” class=”readmore” /></a>’; } ?>
</div>
<div class=”slider-right”>

<?php if (get_option(‘ebusiness_slider_2_type’) == ‘Video’) : ?>
<?php echo $ebusiness_slider_2_video; ?>
<?php else : ?>
<img src=”<?php bloginfo(‘template_directory’); ?>/timthumb.php?src=<?php echo $ebusiness_slider_2_image; ?>&amp;h=192&amp;w=334&amp;zc=1″ alt=”slider image” class=”slider_image” />
<?php endif; ?>

</div>
</li>
<li>
<div class=”slider-left-2″>
<div class=”slider-left”>
<h2>Keep Up The Good Work</h2>
<img src=”<?php bloginfo(‘template_directory’); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif” alt=”line” class=”slider-line” />
<div style=”clear: both;”></div>
Now that you have a successful website, with all the visitors you need don’t leave it there. Test the content to see what works best. Lets optimise your opportunities to the max and make sure your website is always on form </div>
<?php if (get_option(‘ebusiness_slider_3_readmore’) == ‘false’) { ?>
<?php { echo ”; } ?>
<?php } else { echo ‘<a href=”‘ . $ebusiness_slider_3_readmore_url . ‘”><img src=”‘ . get_bloginfo(‘template_directory’) . ‘/images/readmore-‘ . $ebusiness_color_scheme . ‘.gif” alt=”read more” class=”readmore” /></a>’; } ?>
</div>
<div class=”slider-right”>

<?php if (get_option(‘ebusiness_slider_3_type’) == ‘Video’) : ?>
<?php echo $ebusiness_slider_3_video; ?>
<?php else : ?>
<img src=”<?php bloginfo(‘template_directory’); ?>/timthumb.php?src=<?php echo $ebusiness_slider_3_image; ?>&amp;h=192&amp;w=334&amp;zc=1″ alt=”slider image” class=”slider_image” />
<?php endif; ?>

</div>
</li>
<li>
<div class=”slider-left-2″>
<div class=”slider-left”>
<h2>The Full Package</h2>
<img src=”<?php bloginfo(‘template_directory’); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif” alt=”line” class=”slider-line” />
<div style=”clear: both;”></div>
Now you know what 3 things you need to succeed why not get it all? We’ll also include social media and auction design </div>
<?php if (get_option(‘ebusiness_slider_4_readmore’) == ‘false’) { ?>
<?php { echo ”; } ?>
<?php } else { echo ‘<a href=”‘ . $ebusiness_slider_4_readmore_url . ‘”><img src=”‘ . get_bloginfo(‘template_directory’) . ‘/images/readmore-‘ . $ebusiness_color_scheme . ‘.gif” alt=”read more” class=”readmore” /></a>’; } ?>
</div>
<div class=”slider-right”>

<?php if (get_option(‘ebusiness_slider_4_type’) == ‘Video’) : ?>
<?php echo $ebusiness_slider_4_video; ?>
<?php else : ?>
<img src=”<?php bloginfo(‘template_directory’); ?>/timthumb.php?src=<?php echo $ebusiness_slider_4_image; ?>&amp;h=192&amp;w=334&amp;zc=1″ alt=”slider image” class=”slider_image” />
<?php endif; ?>

</div>
</li>
</ul>
</div>


————————————————————————————-

I added this coded to option_ebusiness.php:

array( “name” => “Number of Slider Items to be Displayed”,
“id” => $shortname.”_scroller_number”,
“type” => “select”,
“std” => “3”,
“desc” => “Here you can designate how many articles are displayed in the Featured Articles


————————————————————————————–

I added this to style-Smooth-Blue.css:
.slider-link-4 { width: 140px; height: 43px; background-image: url(images/smooth-blue/slider-button-1.png); position: absolute; z-index: 1; left: 450px; top: -35px; color: #fff !important; font-weight: bold; padding: 10px 0px 0px 16px;

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@slyfoxJul 20.2011 — let's start by making your mundane code more readable, and then try again:
[code=php]<div style="position: relative; z-index: 4;">
<div class="prev"></div>
<div class="next"></div>
</div>
<div style="position: relative; z-index: 1;" id="slider-nav"> <a href="#" class="slider-link-1">Web Design</a> <a href="#" class="slider-link-2">Promotion</a> <a href="#" class="slider-link-3">Management</a> <a href="#" class="slider-link-4">The Full Package</a></div>
<div id="sections">
<ul>
<li>
<div class="slider-left-2">
<div class="slider-left">
<h2>Proper Design - Real Growth</h2>
<img src="<?php bloginfo('template_directory'); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif" alt="line" class="slider-line" />
<div style="clear: both;"></div>
Specialised websites to get you more business.. Focusing on what&#8217;s important for best results. Clever content and well planned design will make your website a success and bring you to a new level </div>
<?php if (get_option('ebusiness_slider_1_readmore') == 'false') { ?>
<?php { echo ''; } ?>
<?php } else { echo '<a href="' . $ebusiness_slider_1_readmore_url . '"><img src="' . get_bloginfo('template_directory') . '/images/readmore-' . $ebusiness_color_scheme . '.gif" alt="read more" class="readmore" /></a>'; } ?>
</div>
<div class="slider-right">

<?php if (get_option('ebusiness_slider_1_type') == 'Video') : ?>
<?php echo $ebusiness_slider_1_video; ?>
<?php else : ?>
<img src="http://organicwebdesigns.co/wp-content/themed/eBusiness/images/webpic_s1.png" alt="slider image" class="slider_image" />
<?php endif; ?>

</div>
</li>
<li>
<div class="slider-left-2">
<div class="slider-left">
<h2>Better Than Your Competitor?</h2>
<img src="<?php bloginfo('template_directory'); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif" alt="line" class="slider-line" />
<div style="clear: both;"></div>
Google rewards natural growth. With a clear strategy and quality seo you'll see yourself ahead of the game </div>
<?php if (get_option('ebusiness_slider_2_readmore') == 'false') { ?>
<?php { echo ''; } ?>
<?php } else { echo '<a href="' . $ebusiness_slider_2_readmore_url . '"><img src="' . get_bloginfo('template_directory') . '/images/readmore-' . $ebusiness_color_scheme . '.gif" alt="read more" class="readmore" /></a>'; } ?>
</div>
<div class="slider-right">

<?php if (get_option('ebusiness_slider_2_type') == 'Video') : ?>
<?php echo $ebusiness_slider_2_video; ?>
<?php else : ?>
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $ebusiness_slider_2_image; ?>&amp;h=192&amp;w=334&amp;zc=1" alt="slider image" class="slider_image" />
<?php endif; ?>

</div>
</li>
<li>
<div class="slider-left-2">
<div class="slider-left">
<h2>Keep Up The Good Work</h2>
<img src="<?php bloginfo('template_directory'); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif" alt="line" class="slider-line" />
<div style="clear: both;"></div>
Now that you have a successful website, with all the visitors you need don't leave it there. Test the content to see what works best. Lets optimise your opportunities to the max and make sure your website is always on form </div>
<?php if (get_option('ebusiness_slider_3_readmore') == 'false') { ?>
<?php { echo ''; } ?>
<?php } else { echo '<a href="' . $ebusiness_slider_3_readmore_url . '"><img src="' . get_bloginfo('template_directory') . '/images/readmore-' . $ebusiness_color_scheme . '.gif" alt="read more" class="readmore" /></a>'; } ?>
</div>
<div class="slider-right">

<?php if (get_option('ebusiness_slider_3_type') == 'Video') : ?>
<?php echo $ebusiness_slider_3_video; ?>
<?php else : ?>
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $ebusiness_slider_3_image; ?>&amp;h=192&amp;w=334&amp;zc=1" alt="slider image" class="slider_image" />
<?php endif; ?>

</div>
</li>
<li>
<div class="slider-left-2">
<div class="slider-left">
<h2>The Full Package</h2>
<img src="<?php bloginfo('template_directory'); ?>/images/slider-line-<?php echo $ebusiness_color_scheme; ?>.gif" alt="line" class="slider-line" />
<div style="clear: both;"></div>
Now you know what 3 things you need to succeed why not get it all? We'll also include social media and auction design </div>
<?php if (get_option('ebusiness_slider_4_readmore') == 'false') { ?>
<?php { echo ''; } ?>
<?php } else { echo '<a href="' . $ebusiness_slider_4_readmore_url . '"><img src="' . get_bloginfo('template_directory') . '/images/readmore-' . $ebusiness_color_scheme . '.gif" alt="read more" class="readmore" /></a>'; } ?>
</div>
<div class="slider-right">

<?php if (get_option('ebusiness_slider_4_type') == 'Video') : ?>
<?php echo $ebusiness_slider_4_video; ?>
<?php else : ?>
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $ebusiness_slider_4_image; ?>&amp;h=192&amp;w=334&amp;zc=1" alt="slider image" class="slider_image" />
<?php endif; ?>

</div>
</li>
</ul>
</div>[/code]
Copy linkTweet thisAlerts:
@slyfoxJul 20.2011 — start using indentations and you'll spot your problem... and please remember, no one here gets paid to do anybody any favours, please clean up and do your homework first before you dump such a huge load on anyone (no-one was trying to be your genius).

btw... this is an html question, try it in the html forum
Copy linkTweet thisAlerts:
@hantaahauthorJul 21.2011 — hi

I thought this was to do with the php, which I have not got a clue about. I am a newbee so not sure what homework to do.

I tryed the code you gave and it gave an error so re entered the new code and it worked. What do you think that was?

also when you say make your code more reliable what do you mean by that?

Please remember I am a newbe and I am just learning, I am learning from my own home with no support so don't know where else to ask

I also know what it's like to get stuck so whatever I learn I am happy to spend my time on forums to help those who come accros the same issues as myself

thank you for your time I very much appreciate it
×

Success!

Help @hantaah spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...