Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1287391

    Hello,
    On a homepage i’ve had 3 different blog-post rows. Each with post from another category.
    Is it possible to give each categroy another background-color?
    Now it’s green, but the second row must be red and the third row blue (by example).
    The category’s are ‘news’, ‘personal’ and ‘uitgelicht’.

    And is it possible that the 3 blog posts in a row have the same title-background height?
    So that the one-line-txt- is the same to the two-lines-txt.

    I’ve looked for several topics and tried anything, but i don’t get the solution.
    Thanks!

    #1288131

    Hey Theodor,
    Thank you for your patience and for the link to your site.
    As I understand your site layout for this section the first row will always be green, the second red, and the third is blue, for this please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #av_section_1 .avia-content-slider .slide-content .slide-entry-title,
    .avia-button-wrap.avia-builder-el-6 > .avia-button {
    	background-color: #c8d094 !important;
    }
    #av_section_2 .avia-content-slider .slide-content .slide-entry-title,
    .avia-button-wrap.avia-builder-el-10 > .avia-button {
    	background-color: #d09c94 !important;
    }
    #av_section_3 .avia-content-slider .slide-content .slide-entry-title,
    .avia-button-wrap.avia-builder-el-14 > .avia-button {
    	background-color: #a9c3cc !important;
    }
    

    Please see the screenshot in the Private Content area that displays this. So this would work as is, but I would recommend adding a custom ID to each of the 3 sections so if you should edit the page in the future the solution will continue to work.
    The custom IDs would need to be added to the css to replace the default IDs of #av_section_X.
    If you would like a hand with this step please include an admin login in the Private Content area, or if you are able to add the custom IDs we can rewrite the above css without logging in.

    Best regards,
    Mike

    #1288240

    Hey Mike,
    Thanks for the answer.

    It works great on this homepage.
    But when you click on the button (under the category-blog post) there’s a page which show more of these blogs. Al with the same color.
    There is one av-section, so it will always be blue.

    Is there a solution that i can choose which av-section-color must show, combined with the Custom ID of that element?
    (i think i’ll know how that works ;-)

    Greetz, Theodor!

    #1288543

    Hi,
    Thanks for the feedback, and thanks for the login, perhaps a better solution would be to add a custom class to each of the blog elements on the homepage and duplicate this class on the corresponding blog elements on your other pages, this would replace the section ID of the css.
    2021-03-16_085221.jpg
    So every blog element with the custom class “red” would show the blog entries in red no matter what page they are on. Please give this a try, if you like I can demonstrate this with one blog element on your homepage and the corresponding “other” page.

    Best regards,
    Mike

    #1288672

    Hi Mike,

    if you like I can demonstrate this with one blog element on your homepage and the corresponding “other” page.

    Please, demonstrate it.
    I’ve tried different options but it doesn’t the work i’ve expected.

    Thanks.

    #1288731

    Hi,
    First I disabled the previous css, and then on the homepage I added the custom class “red” to the second blog element:
    2021-03-17_082253.jpg
    Then I added this css to your Quick CSS:

    .avia-content-slider.red .slide-content .slide-entry-title {
    	background-color: #d09c94 !important;
    }

    so for the homepage this is the result:
    2021-03-17_082957.jpg
    now if we go to the /zeeland-heden-en-verleden/ page and add the same custom class “red” to the blog element the posts will also show the same:
    2021-03-17_083743.jpg
    So now that the css was added once every blog element with the custom class “red” will show this way anywhere on your site, you can now do this with other colors by using a different custom class and create a different css snippet.

    Best regards,
    Mike

    #1289012

    Thanks Mike,
    I’ve changed the site with the different colors and it works great.
    Thanks a lot for the advice en help!

    #1289033

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.