Add text padding to banners - by neil - on WordPress WooCommerce support

12 replies3 participantsUpdated by Eva Kemp

  • Avatar: midlandsonline
    neil
    Participant

    Hi

    Is there any custom css that I can add to the banners under the section Food and Drink on my site http://falcon.bimmerworx.com/

    I want the body text in the banners to have some padding but everything I try doesn’t seem to work

    12 Answers

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    Try to add this code into custom.css file.

    .banner.valign-bottom .banner-inner{
    padding:5px;
    }

    Here is a video tutorial how to create custom.css: https://www.youtube.com/watch?v=Qok2zRedRMY&feature=youtu.be.

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant

    Thank you, it has partly solved my issue.

    This may be an impossible request but if you take a look at that section now you will see the first two banners have the text that start at different lines/levels.

    Is there a way to ensure that each banner text starts on the same line? The css code you sent gives a valign-bottom which may causing this issue

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Unfortunately your banner images have different sizes and text will be over the bottom border for some banner.
    You can try to add this code in custom.css file:

    .banner.valign-bottom .banner-inner {
      top: 250px;
    }

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: midlandsonline
    neil
    Participant

    Hi

    I will be making all 4 banners the same size so hopefully this will solve it

    Thanks

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Ok, let us know if further assistance is required.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: midlandsonline
    neil
    Participant

    Hi there

    I still have a slight problem with this. All looks good on mobiles portrait but on tablets and mobiles landscape the text comes out of the boxes.

    See this link for an example http://mobiletest.me/ipad_mini_emulator/#u=http://www.thefalconathatton.com/

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    Please provide us with wp-admin access in Private Content.

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant

    sure

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please add this code in custom.css file:

    @media (max-width: 979px) {
    .banner img {
    height: 100%;
    }
    .banner.valign-bottom .banner-inner {
    padding: 18px;
    }
    }

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: midlandsonline
    neil
    Participant

    Hi Eva

    Sorry, that hasn’t solved the issue.

    Please look on this link and you will see the text is still outside the boxes in the dine.drink.stay section

    http://mobiletest.me/ipad_mini_emulator/#u=http://www.thefalconathatton.com/

    Avatar: midlandsonline
    neil
    Participant

    I have added <br /> code to try and fix this issue which has partly worked but if you look at the site on an ipad in landscape you will see that the bottom of the content has disappeared

    http://mobiletest.me/ipad_mini_emulator/#u=http://www.thefalconathatton.com/

    http://ipadpreview.com/previewer?url=http%3A%2F%2Fwww.thefalconathatton.com%2F%23menu

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please try to use this code in custom.css file:

    @media only screen and (max-width: 1200px) {.banner.valign-bottom .banner-inner {
    padding: 12px !important;
    }
    .banner.valign-bottom .banner-inner {
    top: 200px !important;
    }}

    Thank you.
    Regards,
    Eva Kemp.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register