• Resolved unmeltmagazine

    (@unmeltmagazine)


    Hello everybody !

    Sorry for my English, but I’ll try to be the most precise as I can.

    I wanted to know if it’s possible to round the corners of the posts in the blog archives by the custom CSS ?

    Also, I would like the posts corners to be round at the top and the bottom of post body.

    Is it possible ?

    Thanks in advance !

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi! You can do this by adding this to your additional CSS:

    div.post {
    border-radius: 25px;
    }

    Edit: Just make sure to adjust the “background-color” to whatever color you’re using on your site, or you’re going to get a black edge around the corners.

    • This reply was modified 7 years, 1 month ago by ashe.
    • This reply was modified 7 years, 1 month ago by ashe.
    Thread Starter unmeltmagazine

    (@unmeltmagazine)

    Thanks a lot !
    Is it also possible to apply rounded corners on the post itself ? (I don’t find the word, but I mean when you’re clicking on the post)
    Thanks

    Oh damn, you’re right. Try modifying “div.excerpt-container” instead.

    Thread Starter unmeltmagazine

    (@unmeltmagazine)

    Sorry, I’m not precise enough.

    What I need to do, is to round the top corners (so, the top of the featured image), and the bottom of the comment section (as you can see here https://unmeltmagazine.com/le-label-messe-noire-sinvite-au-1988-live-club-a-rennes)

    The “div.excerpt-container” is not working :-/

    Ohhh. Okay. So like the whole thing is rounded without separations, if I understand you correctly? Delete everything I said before and try this instead:

    div.featured-image {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    }

    div#disqus_thread {
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    }

    It’s working when I test it in inspect element.

    • This reply was modified 7 years, 1 month ago by ashe.
    Thread Starter unmeltmagazine

    (@unmeltmagazine)

    Thanks a lot, it’s almost perfect, I only have an little issue between the post area and the disqus area. The bottom corners of the post area are still rounded. It looks perfect when you’re on the main page of the site (https://unmeltmagazine.com), but not when you’re inside a post (https://unmeltmagazine.com/le-label-messe-noire-sinvite-au-1988-live-club-a-rennes)

    Remove all the “border radius” from “div.post” (it also looks like it’s in your code twice). Instead, try this:
    div.featured-image {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    }

    So basically, you’re getting rid of all the “div.post” modifications, and instead rounding the top of the image and rounding the bottom of the comments section, so it looks like one long strip.
    The featured image is inside of “div.post”, but div#disqus_thread is a separate element entirely, so you won’t want to round “div post” because it will show at the bottom. Instead, you want to just round the top, so that it looks like it’s all one seamless line.

    Thread Starter unmeltmagazine

    (@unmeltmagazine)

    Thanks so much for your reactivity ! I think that I have pretty much what I wanted/

    I put :

    div.post {
    border-radius: 25px;
    }
    .entry .featured-image {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    }
    div#disqus_thread {
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    margin-top: 40px
    }

    is there anything to improve, or is it OK ?

    Of course! This stuff is always fun for me (:

    I think your site looks gorgeous btw.

    Thread Starter unmeltmagazine

    (@unmeltmagazine)

    Thank very much πŸ™‚ !
    And, thanks so much for your precious help !

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Round Posts Corners’ is closed to new replies.