• 0

Adding Nivo Slider to template


Question

Hi everyone,

I'm working on a website and i would like to do the following... but im not having any luck!

Here's the homepage

http://www.cndiamonddealers.com

Once open you will see the Nivo slider with the blue background half way through the slider and the grey below it.

I want to recreate the same style on every other page ( about us, services, info centre, contact and coloured diamonds)

I'm using Shinytheme from themeforest

The template i'm using for each page except the home page is single page left sidebar template.

I've tried copying the portion of the code from the home page into the other template which only created the border with no images inside, and the blue doesnt wrap.

Any help please? im ready to give up on it lol

Link to comment
https://www.neowin.net/forum/topic/1076157-adding-nivo-slider-to-template/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

arent those files preloaded in the header? so the get header php code should have those or no?

Theyre loaded in the footer for each page.

so you copied this code and it still didnt work?


<div id="featured">
<div id="featured_border">
<div id="featured_inner">
<div class="slider" id="slider" style="height: 350px;"><img src="https://cndiamonddealers.com/wp-content/themes/shiny/lib/timthumb.php?src=http://cndiamonddealers.com/wp-content/uploads/2012/05/slide13.jpg&w=930&h=350&zc=1" title="Black Diamonds" alt="Black Diamonds" /><img src="https://cndiamonddealers.com/wp-content/themes/shiny/lib/timthumb.php?src=http://cndiamonddealers.com/wp-content/uploads/2012/05/slide21.jpg&w=930&h=350&zc=1" title="Colored Diamonds" alt="Colored Diamonds" /><img src="https://cndiamonddealers.com/wp-content/themes/shiny/lib/timthumb.php?src=http://cndiamonddealers.com/wp-content/uploads/2012/05/slide31.jpg&w=930&h=350&zc=1" title="Purple Diamonds" alt="Purple Diamonds" />
</div>
<script type="text/javascript">
var slideParams = [];
slideParams['effect'] = 'random';
slideParams['slices'] = '10';
slideParams['animSpeed'] = '600';
slideParams['pauseTime'] = '4000';
slideParams['directionNav'] = 0;
slideParams['directionNavHide'] = 0;
slideParams['controlNav'] = 1;
slideParams['keyboardNav'] = 1;
slideParams['pauseOnHover'] = 0;
slideParams['manualAdvance'] = false;
slideParams['stopAtEnd'] = 0;
slideParams['height'] = 350;
</script> </div>
</div>
</div>
[/CODE]

  • 0

The template i'm using for each page except the home page is single page left sidebar template.

I've tried copying the portion of the code from the home page into the other template which only created the border with no images inside, and the blue doesnt wrap.

As well for this youll need to edit the page template if you want the blue to reach further. this will be controlled by the css for the page templates.

  • 0

nope that wasnt what i copied...

it was this


<?php if($e404_options['home_slider']) : ?>
<div id="featured">
<div id="featured_border">
<div id="featured_inner">
<?php e404_show_slider(); ?>
</div>
</div>
</div>
<?php endif; ?>
[/CODE]

  • 0

nope that wasnt what i copied...

it was this


<?php if($e404_options['home_slider']) : ?>
<div id="featured">
<div id="featured_border">
<div id="featured_inner">
<?php e404_show_slider(); ?>
</div>
</div>
</div>
<?php endif; ?>
[/CODE]

Looks like a custom function. Can you not just generate a new nivoslider shortcode in the theme options?

http://e404themes.com/shiny/shortcodes/nivo-slider/

  • 0

Looks like a custom function. Can you not just generate a new nivoslider shortcode in the theme options?

http://e404themes.co...es/nivo-slider/

yes i can but i didnt like how it looked.

I was aiming at having the same look as the home page, but with just an image instead of a slider.

So i tried inserting the "Featured image" option on the page but it's not showing, so i tried the nivo slider and i couldnt get to work either.

I would prefer the featured image replacing the slide with the same look as the home page.... if that makes sense

  • 0

Ah right. Well unless the theme gives you the options to change the page layout you will probably have to modify the theme files to create a new page template which looks like the homepage.

See the page template bit on this page:

http://codex.wordpress.org/Pages

  • 0

robertobaggio2k, Are you going to sell the templete to a website that sells templetes? If so then you can't use that in your templete with the license agreement.

  • 0

robertobaggio2k, Are you going to sell the templete to a website that sells templetes? If so then you can't use that in your templete with the license agreement.

what? im not selling anything lol... just bought the template and customizing to the clients likes to be used on his website.

That's all

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • You're absolutely right! No reason in hell these should be on the road!
    • They aren't going to want to. Most would just go with the 17 Pro and save money. Why would they want to spend $300 for basically the same thing? It's not worth it if there are hardly any changes from year to year.
    • 24H2 rolled out to the Release Preview Channel in early June 2024, so this coming a bit later in the Experimental Channel (formerly Dev) doesn't really say much more than earlier H2 releases that came out in October. I am not sure what the thinking is here by putting it in Experimental, one would think that the 26H2 stamp means features are locked down and it's now bug tested until October? I don't even pretend to understand Microsoft's strategy for Windows Insider Program though
    • Nothing Ear (a) and CMF Buds Pro 2 with active noise cancellation drop to lowest price ever by Fiza Ali With Prime Day 2026 scheduled to run from Tuesday 23 to Friday 26 June, Amazon has already begun rolling out early access offers ahead of the main event. Particularly, Nothing Ear (a) and CMF Buds Pro 2 wireless earbuds have dropped to their lowest price ever with limited Prime deal offering 33% and 24% discounts, respectively. Nothing Ear (a) are equipped with 11mm dynamic drivers featuring a PM1 + TPU diaphragm. For noise control, the earbuds offer active noise cancellation (ANC) of up to 45dB across frequencies reaching 5,000Hz. The smart ANC algorithm adapts to surrounding noise levels, while a Transparency Mode allows users to remain aware of their environment when needed. Connectivity is handled via Bluetooth 5.3, with support for AAC, SBC, and LDAC audio codecs. Additional features include IP54-rated earbuds for dust and splash resistance, paired with an IPX2-rated charging case. Furthermore, users also benefit from pinch controls, in-ear detection, Google Fast Pair, Microsoft Swift Pair, dual-device connectivity, and a low-latency mode designed for gaming and video playback. The Nothing X app unlocks a range of customisation options, including a personalised equaliser, bass enhancement, control remapping, ear tip fit testing, firmware updates, dual-device management, a Find My Earbuds feature, and low-latency mode settings. When it comes to the battery, the earbuds house a 46mAh lithium-ion battery, while the charging case contains a 500mAh cell. With ANC disabled, users can expect up to 9.5 hours of playback from the earbuds and up to 42.5 hours in total with the charging case. With ANC enabled, battery life is rated at up to 5.5 hours per charge and up to 24.5 hours combined with the case. Finally, fast charging is also supported that should provide up to 10 hours of playback from a 10-minute charge with ANC turned off. Nothing Ear (a) Wireless Earbuds (Black): $53.20 (Amazon US) - 33% The CMF Buds Pro 2 feature a dual-driver audio system consisting of an 11mm bass driver and a 6mm micro-planar tweeter. The earbuds use PU (polyurethane) and PET (polyethylene terephthalate) titanium-coated diaphragms and are tuned by Nothing to deliver balanced audio performance. They further support active noise cancellation of up to 50dB across a frequency range of up to 5,000Hz, and noise control features include a Smart ANC algorithm, Adaptive ANC, Transparency Mode, and Clear Voice Technology 2.0. For calls, the CMF Buds Pro 2 use a total of six microphones and feature an environmental noise-cancelling algorithm, Clear Voice Technology 3.0, and Wind Noise Reduction 3.0 that should improve voice clarity during conversations. Furthermore, when it comes to the connectivity, it is provided through Bluetooth 5.4. Additional features include an IP55 rating for dust and water resistance, Google Fast Pair, Microsoft Swift Pair, in-ear detection, a low-latency mode, and a Find My Earbuds function. Moreover, through the Nothing X app for Android and iOS, users can access custom EQ settings, a bass enhancement algorithm, customisable controls, Find My Earbuds, low-latency mode, dual-device connectivity, an ear tip fit test, and firmware updates. The earbuds contain a 60mAh rechargeable lithium-ion battery, while the charging case houses a 460mAh battery. A full charge of the earbuds and case via USB-C should take approximately 85 minutes, while the earbuds alone should be fully recharged in the case in around 60 minutes. Battery life is rated at up to 11 hours of playback on a single charge and up to 43 hours with the charging case when ANC is turned off. With ANC enabled, playback time is reduced to up to 6.5 hours on the earbuds and up to 26 hours with the charging case. Talk time is rated at up to 6 hours on the earbuds and 25 hours with the case with ANC disabled, or up to 4.8 hours and 18.6 hours, respectively, with ANC enabled. CMF Buds Pro 2 Wireless Earbuds (Dark Grey): $37.05 (Amazon US) - 24% Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Week One Done
      AMV earned a badge
      Week One Done
    • One Month Later
      AMV earned a badge
      One Month Later
    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      542
    2. 2
      +Edouard
      186
    3. 3
      Michael Scrip
      77
    4. 4
      PsYcHoKiLLa
      76
    5. 5
      Steven P.
      71
  • Tell a friend

    Love Neowin? Tell a friend!