slider height requirements

Support Area Forums Live slider height requirements

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #6931
    Marcelo Soler
    Participant

    How do I change the min height requirements for the slider. I want to keep the width but shorten the height, thanks

    #6941
    Bill Robbins
    Moderator

    Marcelo,

    Great question. Here’s how to make that change.

    1. Go to the appearance section and select edit to open up the theme editor.
    2. From the list of files on your right, choose ot-cycle.php. Near the top you’ll see this:
      
      $ot_cycle_defaults = apply_filters('ot_cycle_defaults', array(
      	'rotate' => 1,
      	'effect' => 'fade',
      	'delay' => 3,
      	'duration' => 1,
      	'img_width' => 870,
      	'img_height' => 430,
      	'div' => 'slider'
      ));
      
    3. You can change the 430 in this line 'img_height' => 430, to have a different height in pixels.
    4. Save your changes.
    5. Lastly go to the slideshow page in your WordPress control panel and click “reset settings.

    Now the images that you upload will have the new height. If you run into trouble, just let me know.

    Enjoy your week,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘slider height requirements’ is closed to new replies.