WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Override theme's image bordering (5 posts)

  1. Darkkurama
    Member
    Posted 2 years ago #

    Hi, my question is, is it possible to override the bordering of images of my current theme?

    When a image is embedded in my wordpress site and with my current theme, said image gets a border (like this). All i want is to get rid of that border for a single time use. Is this possible? thanks

  2. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    Generally, you can change that when you upload an image and there is a window for how you want it styled. Or you can change the styling in the CSS file -- but if it's only one image, it may be more complicated to do it in the CSS file. But unless you can post a link to your site, it's really impossible for anyone to give you more specific help.

  3. Darkkurama
    Member
    Posted 2 years ago #

    Thanks for your response. Here is my site: http://anesthetize.es/

    you can see in the top post that the image has a border, which I want to get rid so that the image "blends" with the white of the post body.

  4. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    these styles in style.css are formatting the image:

    img.alignleft,
    img.alignright,
    img.aligncenter,
    img.alignnone,
    .post-thumbnail {
    	background: #e2dbd1;
    	border: 1px solid #d1bfa6;
    	...
    	padding: 3px;
    }

    the wider 'border' is the result of padding and background.

  5. Darkkurama
    Member
    Posted 2 years ago #

    Thanks! all I had to do is add in the "Style" section of the advanced options of the image the following line:

    padding: 0px; border: 0pt none;

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic