• Hi,

    I am really struggling to find how to remove the border around the image on my homepage. I want the image the reach from each end without having the page on page effect.. can anyone help please?! I am using the asiana theme. http://ourworldpath.com/

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The homepage image that you’re targeting to make it full-width is actually inside of a .container class and the .container class is using 1170px as it’s maximum width.

    However, if you’d really like to make the homepage image to cover the full width, you’ll need to use the following CSS:

    .home .container {
        width: 100%;
        padding: 0;
    }
    

    Notice that I’ve added the .home class for you which will only make the image wider on the homepage. If you’d like you can remove the .home class from the provided CSS which will affect on all of your pages.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    In the “Additional CSS” part of the dashboard add this:

    
    .home .site-main .container {
        padding: 0;
        width: auto;
    }
    
    .home .site-main .container .row {
        margin: 0;
    }
    
    .home .site-main .container .col-md-12 {
        padding: 0;
    }
    

    https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress

    In future you should contact your theme author for support, as they will have the proper solution. The solution I’ve given breaks the grid layout for the homepage, which isn’t a great approach.
    https://themeforest.net/user/rootlayers/

    Thread Starter libbyandvoyta

    (@libbyandvoyta)

    Thank you! That has helped with the image reaching the sides however how do I get rid of the white space at the top and bottom of the image? Thank you!!

    • This reply was modified 8 years, 10 months ago by libbyandvoyta.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove border around image’ is closed to new replies.