Page 1 of 1

Hiding xi:fallback contents in Author mode

Posted: Fri Sep 09, 2016 9:53 pm
by kim
Hi,

While in Author mode, I'm trying to come up with a way to hide the contents of xi:fallback if the xi:include link resolves. I'm thinking I might be able to do this with CSS, but have been unsuccessful. Any thoughts?

Thanks!

Re: Hiding xi:fallback contents in Author mode

Posted: Tue Sep 13, 2016 9:29 am
by alex_jitianu
Hi,

Yes, fortunately you can do it from the CSS using a rule like this:

Code: Select all

*:-oxy-referenced-content ~ fallback {
display : none !important;
}
Best regards,
Alex

Re: Hiding xi:fallback contents in Author mode

Posted: Tue Sep 13, 2016 3:54 pm
by kim
That seems so very obvious now :)

Thanks, Alex, it works great!