Add border to Feature Image

Support Area Forums Kerygma Add border to Feature Image

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://salenaknight.com
  • Author
    Posts
  • #33672
    Salena Knight
    Participant

    Hey Bill,

    I’m trying to put a border around my feature image.
    I found this code on another support post (foundation theme), but I’m not having much luck with it on the Kerygma theme.

    .page img.attachment-single.wp-post-image,
    .post img.attachment-single.wp-post-image {
    border: 3px solid #333;
    margin-bottom: 10px;
    }

    Any tweaks I might be able to make to get it to work would be appreciated,
    Thanks

    #33673
    Bill Robbins
    Moderator

    Selena,

    It’ll depend somewhat on which featured image you’d like to add it to. Say you want to add a border to the featured images in your blog, then you’d do this:

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      .post .wp-post-image {
      	border: 1px solid #000000;
      }
      
    3. Update your settings.

    Take care,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Add border to Feature Image’ is closed to new replies.