CSS customization with theme Maisha
-
Hello,
My site is made with the theme Maisha.
I want to change the appearance of testimonials on the home page of my website: https://wordpress62469.wordpress.com/I had help with the chat. My companion asked me this CSS code:
/ * Set Width of columns Testimonial * /
.home .child pages .column.clearfix {
width: 46%;
}
/ * Do not clear after-every 3rd column. * /.column: nth-child (3n + 1) {
clear: none;
}
/ * Instead, clear after-every 2nd column. * /.column: nth-child (2n + 1) {
clear: left;
}But this doesn’t give the expected result so he redirected you.
Thank you for your advice
Have a good dayThe blog I need help with is: (visible only to logged in users)
-
Hi there, can you tell me the end result you wish to have on your testimonials and I’d be happy to see what I can do to get that for you.
-
Hello,
I would have only 2 testimonials that appear on the home page instead of 4.
Thank you.
Have a good day -
Hi, on your main page, this will hide all but the first two testimonials.
#post-576 .entry-content .child-pages .column { display: none; } #post-576 .entry-content .child-pages .column:first-child, #post-576 .entry-content .child-pages .column:nth-child(-n+2) { display: block; } -
Hello,
Thank you very much, that’s what I wanted.
May I ask you if it’s possible to center the 2 testimonials on the page, regardless of the size of the page (tablet, smartphone, pc).
And is it possible to display the 2 newest ? As for the articles ?Bye
-
Great. On centering the testimonials, it’s a bit tricky. Add the following at the bottom of your custom CSS.
@media screen and (min-width: 955px) { .home .child-pages .column { width: 45%; } }And is it possible to display the 2 newest ? As for the articles ?
Are you talking about the 2 newest testimonials? If so, you can open each of your testimonial child pages and set a page order and the testimonials page, and the 2 on the main page should reorder.
-
Hello,
I just made your corrections about these questions. All is ok and the result is perfect !
Thank you very much
Have a great day -
- The topic ‘CSS customization with theme Maisha’ is closed to new replies.