Skip to content
Discussion options

You must be logged in to vote

I think you can actually do it much simpler. If you insert the following script after the body tag you can toggle visibility based on the advisor type (code below is just proof of concept so you still need to adapt it to toggle the correct elements. I also used an id tag on the element in stead of getting it by its class name. Let me know if this works!

<script>
        window.onload = function(){
            if(exp.advisor_type === 'normal'){
                document.getElementById("coverstory").style.display = "none";
            }
        }
  </script>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adaniabutto
Comment options

Answer selected by adaniabutto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants