• 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

    • Leave Secure Boot off, the Optiplex 7010 isn't getting a firmware update to support the changes...
    • Microsoft confirms Windows 11 26H2 to finally get one of the most requested features by Sayan Sen This past week Microsoft officially confirmed Windows 11 version 26H2 with the latest build, 26300.8697, for testing in the experimental Insider channel. The company also published more details about it mainly directed towards IT admins and system admins. Essentially version 26H2 will be delivered via an enablement package (eKB) over Windows 11 25H2. If you are wondering about some of the upcoming features in the next Windows version, one of them is certainly very interesting as Microsoft has confirmed it is finally bringing one of the most overwhelmingly requested features ever. March Rogers, the Partner Director of Design at Microsoft, recently highlighted some of the Search improvements that the company is testing, and during the interaction with users on X where he posted it, Rogers also confirmed that the company is working on disabling web search results inside Search. This is something which many users find quite annoying as Windows would often serve them links to Bing which it feels could be more helpful rather than bringing up the actual object or app the user may be searching for on their PC. Finally though the company is prioritizing local file search over the web. However the feature could not be disabled for many users as not all new features are immediately rolled out to everyone. Image via phantomofearth (X) Windows enthusiast phantomofearth who likes to dig deep into new builds uncovered the IDs you will need to enable these features. Using the following feature IDs the new Search-related features landing in Windows 11 26H2 can be used. Follow the steps below to enable the new Search experience on Windows 11 build 26300.8697: Download ViveTool from GitHub and unpack the files in a convenient and easy-to-find folder. Press Win + X and select Terminal (Admin). Switch Windows Terminal to the Command Prompt profile with the Ctrl + Shift + 2 shortcut or by clicking the arrow-down button at the top of the window. Navigate to the folder containing the ViveTool files with the CD command. For example, if you have placed ViveTool in C:\Vive, type CD C:\Vive. Type vivetool /enable /id: and press Enter. Restart your computer. If you change your mind and want to restore, repeat the steps above and replace /enable with /disable in the commands on steps 5 and 6. Delightedly and perhaps also expectedly, once you disable web search and other such bloat, the Windows 11 Search is said to get snappier as remarked by another Windows enthusiast Xeno.
    • Makes me think of Family Guy - "Carl Sagan's Cosmos... edited for Rednecks" 🤣 https://www.youtube.com/watch?v=Ljt5iESYA7k&t=2s
    • Microsoft PC Manager 3.21.7.0 (Offline Installer) by Razvan Serea With Microsoft PC Manager, users can easily perform basic computer maintenance and enhance the speed of their devices with just one click. This app offers a range of features, including disk cleanup, startup app management, virus scanning, Windows Update checks, process monitoring, and storage management. Microsoft PC Manager key features: Storage Manager- easily uninstall infrequently used apps, manage large files, perform a cleanup, and set up Storage Sense to automatically clear temporary files. Health Checkup feature -scans for potential problems, viruses, and startup programs to turn off. It helps you identify unnecessary items to remove, optimizing your system's performance. Pop-up Management - block pop-up windows from appearing in apps. Windows Update - scans your system for any pending updates. Startup Apps - enable or disable startup apps on your PC, allowing you to optimize your system's startup performance. Browser Protection - rest assured that harmful programs cannot alter your default browser. Also enables you to change your default browser. Process Management - allows you to conveniently terminate any active process, ensuring optimal system performance and resource utilization. Anti-virus protection - Fully integrated with Windows Security. Safeguard your PC anytime. Quick Steps: Download Microsoft PC Manager Offline Installer (APPX/MSIX) with Adguard Adguard serves as a third-party online service, offering a user-friendly method for directly downloading appx, appxbundle, and msixbundle files from the Microsoft Store. Official download links will be generated for both the app's various versions and its dependency packages. How to download Microsoft PC Manager Offline Installer (APPX/MSIX) 1. Initially, you must find the app URL within the Microsoft Store. Access the Microsoft Store via your browser and search for "Microsoft PC Manager". Once located, copy the app URL, which includes the product ID, either from the address bar or from the provided link below. https://apps.microsoft.com/detail/9PM860492SZD 2. Now paste the app URL into the designated area, then click the check mark button to produce a direct download link. 3. To download, right-click the relevant link and select “Save link as…” from your browser's menu. Occasionally, Microsoft Edge may flag the download as insecure. In such cases, consider utilizing alternative browsers such as Google Chrome or Firefox to successfully complete the download. Microsoft PC Manager is a completely free tool optimized exclusively for use on Windows 10 (19042.0 and above) and Windows 11. Download: Microsoft PC Manager 3.21.7.0 | from Microsoft Store View: Microsoft PC Manager Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • Dedicated
      Almohandis earned a badge
      Dedicated
    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
    • First Post
      DrWankel earned a badge
      First Post
    • Reacting Well
      DrWankel earned a badge
      Reacting Well
    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      +Edouard
      177
    3. 3
      PsYcHoKiLLa
      84
    4. 4
      Steven P.
      76
    5. 5
      Michael Scrip
      76
  • Tell a friend

    Love Neowin? Tell a friend!