Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #105703
    philzeweb
    Participant

    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

    #105736
    Mahesh
    Keymaster

    @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,
    Mahesh

    #105745
    philzeweb
    Participant

    Awesome! 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

    #105753
    Mahesh
    Keymaster

    @philzeweb: Thank you for your appreciation. Thank you that would be a great help. Have a nice day!

    Regards,
    Mahesh

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Featured content on 2 other pages than home’ is closed to new replies.