Reverse Exclusive Content in Cathedris | World Anvil

Cathedris Themesong

Reverse Exclusive Content

To buy this -- wait a minute, you don't need to buy this! This is FREE! Though, it's still limited to only those with Grandmaster or above membership, because it uses containers.

Stats at a glance

BS5 Support
BS5 and BS3 compatible!

BBCode wordcount
Roughly 25 words

CSS line count
Roughly 2 lines

Bundle Options
It's free :D

  This is a very small piece of CSS I've thrown together to showcase a simple and clever way in which you can HIDE content from people that belong to a specific subscriber group. Say you have a subscriber group called [players] that you don't want to see certain spoilers (but you do want them visible to anyone else reading your article) -- using this method, you can ensure that when they are logged in, any information included in the [content-to-hide] box will not render for them. Of course this requires them to be logged in so it's not foolproof, but it is one more tool to use.   What you need:
  • A subscriber group that you can copy a 'subscriber group only' container from
  • A tiny bit of CSS

  •     Test Subscriber [Click the box again to leave the subscriber group and have the quote below re-appear]  
    This quote will not be here if you're a part of the subscriber group

    The Code




    This works very simply by saying "if a subscriber container (.secret-subdivision) exists within this .reverse-exclusive container, then make the next direct sibling called ".content-to-hide" set to display: none!

    .reverse-exclusive .secret-subdivision + .content-to-hide { display: none; }  


    The secret subdivision only shows up in your pages HTML to the proper subscribers (and to you, the world owner, so you will need to view the page with a second account to test on your own world), so the only time the content is hidden is for those specific people.
    [container:reverse-exclusive] [subcontainer:### bunch of numbers that are specific to your own subscriber group] [/subcontainer] [container:content-to-hide][quote]This quote will not be here if you're a part of the subscriber group[/quote][/container] [/container]  


    Please Login in order to comment!
    Feb 27, 2024 20:20 by Mochi

    you're so cool it's unreal

    I hope you have a great day!   Explore the endless planets brimming with life of the Yonderverse! Go after creatures, discover new places, and learn about the people you find along the way.   Check out my plans for Summer Camp!
    Feb 27, 2024 20:37 by Stormbril

    just tryin to be like my cool friend Mochi :D

    Feb 27, 2024 22:43 by spleen

    omg i was just wondering if this was possible - this is amazing! this is so cool and you are awesome for sharing it, thank you :D

    Have a wonderful day!
    Feb 27, 2024 23:06 by Stormbril

    hooray perfect timing then! I'm very glad to be able to share it with you :D

    Powered by World Anvil