Closed (fixed)
Project:
Nivo Slider
Version:
7.x-1.4
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2012 at 07:50 UTC
Updated:
24 May 2012 at 19:18 UTC
what is the procedure to customize the slider in drupal?
if it was a static html slider, i'd read nivo slider docs and customize. is there a correct way to modify the slider in drupal? and by 'modify', i mean like changing the previous next icons, moving the image selection icons around, etc?
Comments
Comment #1
dbinoj commentedComment #2
devin carlson commentedYou should be able to completely customize the slider, including the directional navigation icons, using only CSS (I'd suggest adding the CSS to your theme or to a custom module).
If you intend to heavily customize the slider, you can write your own slider theme (which will show up on the slider configuration page) by registering the hook
hook_nivo_slider_theme()in your own custom module. Details on how to use the hook are outlined in the nivo_slider.api.php file included with the module.Comment #3
dbinoj commentedWhich CSS should I exactlty modify?
CSS in the nivo slider module or CSS in /sites/all/libraries?
Comment #4
dbinoj commentedComment #5
devin carlson commentedYou shouldn't modify any existing CSS files, as your changes will be overridden if you upgrade the Nivo Slider jQuery plugin.
Just override the desired styles output by the plugin. None of the default styles utilize an ID, so you can simply do something like:
to override the default
.theme-default .nivo-caption.Comment #6
dbinoj commentedThanks!