Home>Support>Image border on a specific page (blogg-loop)

Image border on a specific page (blogg-loop)

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hello!

I’m using the Vantage theme (premium). I want to have a border around my images in my blogg-loop but not on my home page. I looked at your video on modifying a field with css but can’t manage to get it working.

Any clues?

I have added the following to my Custom CSS section.

.entry-content img {
  border: 2px solid #000000;
  max-width: 100%;
  height: auto;
}

Thank you!
But how do I get rid of the border around the images on the home page?

URL: http://christofferk.se

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Hi Ekonomipapper

    Perhaps try the following:

    .page-id-19 .entry-content img {
    	border: 2px solid #000000;
    }
    

    Try that at Appearance > Custom CSS and let us know how you come along.

  2. 9 years, 11 months ago Ekonomipapper

    Worked perfectly, thank you!

  3. 9 years, 11 months ago Ekonomipapper

    I noticed, however, that when you go into a post the border is gone. How can I add that as well?

  4. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Rather try this:

    body:not(.home) .entry-content img {
    	border: 2px solid #000000;
    }
    
  5. 9 years, 11 months ago Ekonomipapper

    That worked perfectly. Thanks man!

  6. 9 years, 11 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad that helped :)

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More