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.

Tagged: ,

Slider with border

  • Creator
    Topic
  • #21741
    davidcpa135
    Participant

    I’m sure this has been answered in the past but I couldn’t find a post on it that wasn’t a few versions out.
    Using current version of Alyeska and WP 4.2.2 with child theme.
    My slides were created with a 940 width with one being a slightly different height which I can live with.
    Due to an all white background, I’d like to eliminate the grey border around each slide.
    Used the Chrome inspector but could not find what’s controlling this.
    BTW-using the fade effect.

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

    Hi,

    Do you have a live link to your site where you’re trying to do this?

    #21750
    davidcpa135
    Participant

    Sure thing (this is a nonpublished development link and still very rough draft).

    http://fa1.024.myftpupload.com/

    #21752
    Jason Bobich
    Keymaster

    In your chrome inspector, check out the DIV with class “slides-wrapper” — Here’s where you’ll find a border and padding applied, and what you’ll override from your custom CSS.

    #21755
    davidcpa135
    Participant

    After searching for a while, found and loaded this into the child theme style.css

    Note: The parent theme does not include any CSS in
    style.css, and so you don't need to @import it here.
    */
    
    /* Add your custom CSS here. */
    .slides-wrapper, .tb-nivo-slider-wrapper .slides-wrapper {
      background-color: #fff;
       border: 0px; 
      -moz-border-radius: 0px;
      -webkit-border-radius: 0px; 
      border-radius: 0px; 
      padding: 20px;
    }

    seems this would cover all wrapper but it produces on change.

    #21756
    Jason Bobich
    Keymaster

    You selector is not specific enough to override other places the theme is styling this.

    In order to make CSS customizations like this, you’ll really need to learn how to utilize an inspector. Getting over this hurdle will make your life so much easier.

    So, inspect with your Chrome inspector, under the “Elements” tab, find and click on on the div with class “slides-wrapper”. Now, over in the right column, it shows you what CSS is applied. Whatever is at the top is the most specific selector, and what’s directly effecting the element. And as you travel down, the styles are less specific and being overwritten.

    See how what you did above is not specific enough? It’s too far down. Now what do you see there that the theme is doing, which you could copy and use in your style.css?

    #21758
    davidcpa135
    Participant

    Apologies for being slow but starting to get there. Based on the top-down idea that you mentioned I changed the first (top) occurrence as follows:

    .standard-slider-wrapper .hide-full_nav .slides-wrapper, .tb-nivo-slider-wrapper .hide-full_nav .slides-wrapper {
      padding: 12;
      border: 0px;
    }

    This worked well in getting rid of the border but two events caused me to fumble with it for a couple of hours
    1- I’ve always read that CSS applied in descending order so had assumed that the flow would be from the bottom up rather than the reverse.
    2-In my first attempt, by unchecking the subsquent border box (in the inspector) it killed the border on screen and thus seemed to be the fix.

    In any case, I really appreciate the help. I’ll try to figure out why the #2 works as it does.

    #21759
    Jason Bobich
    Keymaster

    Awesome, glad you figured it out. But now that you understand that, think of how many things you’ll be able to figure out. Should open up lots of doors for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.