• 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

    • Huh? I have an Aeron Remastered and the backrest cannot go up or down (only the lumbar is adjustable). Yes, the Doro C300 Pro V2's backrest can be locked, but the locking mechanism is so weak that when you recline and lean back the backrest moves with your body. I think the whole purpose of this chair is that all of the moving parts (except for the rocking, which can be locked in place) are supposed to move with your body, as you shift your weight, that's why I couldn't get used to it. Some people might like it though. Its redeeming factor is the price, I mean it costs like a quarter of what a new Herman MIller (Aeron) costs.
    • Well done Massie. This is how to treat the Fox News filth.   
    • I notice how you dodged the questions I had about the racism shown by ignorant, gullible, cowardly people when the Poles, like your partner, were the immigrants. Ahem. I wonder how you'd feel if native born Brits suddenly treated you as "dirty crooked immigrant" for being half Trump-American? If they ordered you to leave and "go back to your corrupt country" (on the other side of the Atlantic), would you go? The truth is based on facts as supported by evidence. As requested in your previous posts, I have used the facts in your own post to show everyone the truth.
    • US citizens are paying to their government, who could use that to fund healthcare and tuition and relieve the costs of these for citizens instead of making tax breaks that overwhelmingly favor the rich. I'm not saying that tariffs are the correct solution, but what else would they be used for? What else could Trump have in mind for wanting them, if he hasn't figured out that labor costs are higher in the US?
  • Recent Achievements

    • Conversation Starter
      jessse3334 earned a badge
      Conversation Starter
    • Reacting Well
      JuvenileDelinquent earned a badge
      Reacting Well
    • One Month Later
      Excellence2025 earned a badge
      One Month Later
    • Week One Done
      Excellence2025 earned a badge
      Week One Done
    • Week One Done
      flexorcist earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      +Edouard
      207
    3. 3
      PsYcHoKiLLa
      151
    4. 4
      Steven P.
      73
    5. 5
      macoman
      62
  • Tell a friend

    Love Neowin? Tell a friend!