This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Image border on a specific page (blogg-loop)

Resolved 6 replies premiumthemetheme-vantage
10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

6
  1. Andrew Misplon Staff 10 years, 6 months ago

    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. Ekonomipapper 10 years, 6 months ago

    Worked perfectly, thank you!

  3. Ekonomipapper 10 years, 6 months ago

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

  4. Andrew Misplon Staff 10 years, 6 months ago

    Rather try this:

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

    That worked perfectly. Thanks man!

  6. Andrew Misplon Staff 10 years, 6 months ago

    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.

Have a different question or issue?

Start New Thread