This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reduce the height of a slider in the featured area

  • Creator
    Topic
  • #851
    hicct
    Member

    Hi Jason
    Is there a way to reduce the slider image on the homepage from the 350px to e.g. 285px and of cause the rest of the slider should also be reduced in height.

    I’m using the slide set to have the image aligned to the left. It also has a headline, description, and button included.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #861
    Jason Bobich
    Keymaster

    Hello,

    This will be a customization you’ll need to make to the theme, but I’ll share a CSS snippet that’s been floating around that should help since I get this question quite often.

    1) First, you need to customize the size of the images in your slider. You can use this plugin: http://wordpress.org/extend/plugins/theme-blvd-image-sizes/

    2) Then the next part is just specifically for the homepage slider when up in the feature area, which is what I’m assuming you’re trying to change. This is going to be a little tricky because there are various factors that make this slider design sort of unique with the shadows absolutely placed around and what not. So depending on how much you adjust the height, those items may start to not look right, I can’t say for sure.

    #featured .flexslider .slides { height: 350px;  }

    ==========

    For CSS changes, it’s a good idea to use a tool like firebug or Google Chrome’s built-in developer tools to locate them and then put the edits either in your child theme or in the “Custom CSS” option on your theme options page.

    Also, here’s a helpful tutorial on how to use Firebug – http://vimeo.com/20917974. The only thing I’d suggest not doing is actually making edits to the theme’s CSS files, as it shows at the end of that video. However, the video serves as a good introduction to Firebug and how it can be used to find what CSS is effecting certain areas of your site without ever digging around in any files.

    #7151
    rackexpress
    Participant

    Is there an updated solution to this?

    You’re right, adjusting the slider height does make the shadows show up wonky. Here is an example: http://i49.tinypic.com/33yq80l.jpg (note:I am aware the image in the slider are not sized properly. I am just testing the height of the slider itself).

    Is there an easy way to adjust the shadows without editing the parent theme files? Should I just remove the shadows altogether?

    #7153
    Jason Bobich
    Keymaster

    Yeah, easiest thing would probably be just to hide them. —

    #featured .slider-wrapper .design-2,
    #featured .slider-wrapper .design-3 {
    	display: none;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.