Related Posts: Background & Hide Date & Button Color

edited September 2018 in Blog
Dear BeTheme-Support,

I have three questions regarding the 'related posts'-section below every blog post.
1) Can you provide me with CSS to change to background of this section from grey to white? I already tried the CSS from this discussion, but it didn't work: https://forum.muffingroup.com/betheme/discussion/31703/css-for-changing-background-color-related-posts-section

2) Is it possible to hide the publication date next to the pictures in the 'related posts'-section?

3) Is there a way to change the color of the read more buttons in the 'related posts'-section without change the button colors on the whole website?

Thanks in advance and kind regards,
Luca

Comments

  • Hi,
    1) Please show me on screenshot which section do you exactly want to change
    2) Custom CSS
    .section-related-ul .date_label{
    display:none !important;
    }
    3) Please go to Theme Options > Colors > Content
    There you can change a color of the button.
    Thanks.
  • Hi Pablo,

    1) here's the Related Post section, we want the background to be white instead of grey: https://imgur.com/a/VHg9bXT

    2) Thanks, works perfectly!

    3) I don't want to change the color globally, Only of the yellow buttons on blog posts. Is this possible with custom CSS?
    Here are screenshots of the two buttons that we want to change.
    https://imgur.com/a/VHg9bXT
    https://imgur.com/a/PBf5JNw

    Thanks in advance and regards,
    Luca
  • Ok, paste this Custom CSS into Custom CSS in Theme Options


    1)
    .single-post .section-post-related{
    background:white !important;
    }
    3)
    .single-post .section-post-related .button{
    color:red !important;
    }

    .single-post .section-post-related i{
    color:red !important;
    }
    Cheers
  • Hi Pablo,

    1) Works, thank you!

    3) The buttons now look like this (left one is the button on hover): https://imgur.com/a/ItGlBrE
    I now understand how I can change the color of the non-hover icon and the color of the text.

    What is the CSS to change the non-hover icon, border and background in order to make the buttons look like this (left one is the button on hover): https://imgur.com/a/Cs8BQgf

    Thanks in advance and regards,
    Luca
  • Hi,
    I've made only how to make border on it.
    On previous post you have more of them, so you have a lot of combinations to change colors.
    You'll handle it.
    .single-post .post-related .desc a.button{
    border:solid blue 2px;
    }
    Thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.