New Landing How can we help? Themeforest Theme Support Dante Related Posts Problem

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #44699
    bssmithy
    Member
    Post count: 55

    Hi,

    I added this bit of code to get my blog post images to space correctly (I do photography, so lots of consecutive photos per post):

    .single-post img {margin: 3px;}

    and it ended up affecting the Related Posts area by adding margins on the top, bottom, and left, so you see the container background. Is there a bit of code I could add to disable the above code from affecting the Related Posts area? Attaching a screenshot for reference.

    Thanks.

    #44758
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You need to add the class of the parent div before the .single-post img, if you provide me with a link I can tell you what classes you need to add.

    – Kyle

    #49114
    bssmithy
    Member
    Post count: 55

    OK, well here’s a random post from my site. Thanks for the help.

    http://novelhill.com/2013-novel-hill-wedding-video/

    #49153
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sorry, I need to see the page where you want to have the spacing as 3px.

    So when you say:

    I added this bit of code to get my blog post images to space correctly

    Which page is it on?

    – Kyle

    #51081
    bssmithy
    Member
    Post count: 55

    The code itself is in the custom CSS/JS area of the Dante Theme Options. It’s for all single posts.

    Here is a single post with that spacing: http://novelhill.com/neverland-part-three-lost-girls/

    But the problem is with the Related Posts area at the bottom. As you can see, there’s a dark gray border on the top, left, and bottom of those thumbnails, which appeared when I added the spacing code.

    #51490
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    It’s because the css you added is applied to all images in a single post. If you only want it to apply to the images within the post, change the css to this:

    .article-body-wrap img {
      margin: 6px;
    }

    Hope this helps!

    – Kyle

    #53184
    bssmithy
    Member
    Post count: 55

    Perfect, that’s what I needed.

    Thanks, Kyle!

    #53327
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register