Tagged: featured content
- This topic has 3 replies, 2 voices, and was last updated 7 years, 9 months ago by Mahesh.
-
AuthorPosts
-
December 21, 2016 at 6:59 pm #105703philzewebParticipant
Hi,
I would like to get 2 different featured content on 2 others pages than home.
After some readings, and some additional CSS, I get almost what I was looking for.
Here is my trick. I select “Entire site” in the “Enable Featured Content On” option.
then I add this CSS lines:
#featured-content { display: none; }
.page-id-254 #featured-content { display: block; }
.page-id-232 #featured-content { display: block; }
.page-id-254 article#featured-post-9 { display: none; }
.page-id-254 article#featured-post-10 { display: none; }
.page-id-254 article#featured-post-11 { display: none; }
.page-id-254 article#featured-post-12 { display: none; }.page-id-232 article#featured-post-1 { display: none; }
.page-id-232 article#featured-post-2 { display: none; }
.page-id-232 article#featured-post-3 { display: none; }
.page-id-232 article#featured-post-4 { display: none; }
.page-id-232 article#featured-post-5 { display: none; }
.page-id-232 article#featured-post-6 { display: none; }
.page-id-232 article#featured-post-7 { display: none; }
.page-id-232 article#featured-post-8 { display: none; }As you can see on page-id-254 http://www.rolot.be/services/ I get the 8 first featured page
and on page-id-232 http://www.rolot.be/materiels-pour-un-travail-de-qualite/ I get the last 4 ones.
Everything works fine except in the smartphone view, in that view I get all 12 featured-post.Can you help me on this?
Philippe Stals
December 22, 2016 at 9:53 am #105736MaheshParticipant@philzeweb: The CSS you’ve got is correct, only a slight modification will do the trick:
.page-id-254 article#featured-post-9.hentry { display: none; } .page-id-254 article#featured-post-10.hentry { display: none; } .page-id-254 article#featured-post-11.hentry { display: none; } .page-id-254 article#featured-post-12.hentry { display: none; } .page-id-232 article#featured-post-1.hentry { display: none; } .page-id-232 article#featured-post-2.hentry { display: none; } .page-id-232 article#featured-post-3.hentry { display: none; } .page-id-232 article#featured-post-4.hentry { display: none; } .page-id-232 article#featured-post-5.hentry { display: none; } .page-id-232 article#featured-post-6.hentry { display: none; } .page-id-232 article#featured-post-7.hentry { display: none; } .page-id-232 article#featured-post-8.hentry { display: none; }
Regards,
MaheshDecember 22, 2016 at 11:40 am #105745philzewebParticipantAwesome! It’s working fine.
About a complete other topic, sometimes ago, I did write a post related to the fr_BE.po/mo and fr_FR.po/mo files
I’m still working on it, when I’m done I will provide you the updated files.Thanks again for your very powerful theme, and your reactivity.
Phil
December 22, 2016 at 1:45 pm #105753MaheshParticipant@philzeweb: Thank you for your appreciation. Thank you that would be a great help. Have a nice day!
Regards,
Mahesh -
AuthorPosts
- The topic ‘Featured content on 2 other pages than home’ is closed to new replies.