NivoSlider Settings

WP-poker uses NivoSlider for slider on pages.
For easy use of slider , I have created a shortcode for NivoSlider.
You can call Slider on any page of post by writing the below shortcode.

[­nivoslider]

If you do not pass any parameter , it will slide your latest 5 posts. It will grab featured posts attached to those posts. If no featured post is found , it will display a blank image.
You can customize the slider to suit your needs.

Parameters for sliders are

  • category
    Default : null (grabs latest posts)
    you can provide name or category of id you want post’s images to come from.
    for example: if you want posts from Design category in the slider , you would write.
    [­nivoslider category=design]
  • numposts
    Default : 5 (shows 5 slides)
    you can provide number of slides you want in the slider.
    for example: if you want 7 slides(Posts images) from design category, you would write.
    [­nivoslider category=design numposts=7]
  • imgwidth
    Default : 910 (full width container)
    you can define width of image by this parameter , it would also apply on slider container.
    It is programmed in such a way that it automatically fits on Full width page template and on Default page template (with sidebar).
    for example: if you want slider width of 300 , you would write.
    [­nivoslider category=design imgwidth=300]
  • imgheight
    Default : 300
    you can define height of image by this parameter.
    for example: if you want slider height of 200 , you would write.
    [­nivoslider category=design imgwidth=200]
  • effect
    Default : fold
    you can set the slider transition effect by using this parameter.
    Possible values are :
    -fold
    -fade
    -sliceDown
    -random
    for example: if you want slider with fade effect, you would write.
    [­nivoslider category=design effect=fade]
  • pause
    Default : 5000
    you can set pause time of slides by using this parameter. This value is in milliseconds , so if you write 10000 , that would mean 10 seconds hold time for the slides.
    for example: if you want slide to hold for 4 seconds, you would write.
    [­nivoslider category=design pause=7000]
  • Speed
    Default : 800
    Same thing as the Pause parameter , this parameter is for speed of transition of the slide.
    for example: if you want slides to transit slowly, you would write.
    [­nivoslider category=design speed=1200]
  • zoomcrop
    Default : center
    This parameter sets the rule for cropping the image used as slide (timthumb).
    Possible values are :
    -top
    -bottom
    -center
    -right
    for example: if you want top area of image to be shown in the slide, you would write.
    [­nivoslider category=design zoomcrop=top]
  • showcaption
    Default : true
    This parameter can be used to show or hide the captions shown in slider.
    Possible values are :
    -true
    -false
    for example: if you do not want the captions, you would write.
    [­nivoslider category=design showcaption=false]

Leave a Reply