Conditional Content

Conditional css class

1 year 3 months ago #72880

Laurent From47's Avatar Laurent From47

Hello there,

For a button, i need to do this :

<h3><a href="/" class="button {hide devices="mobile"}button-4{/hide} faa-parent animated-hover"><i class="fa fa-hand-o-right faa-horizontal" aria-hidden="true"></i> Créer votre demande de <strong>Devis Travaux</strong></a></h3>

But don't work.

Thanks Peter

1 year 3 months ago #72882

Peter van Westen's Avatar Peter van Westen Admin

If you place that in a Joomla editor, the editor will mess up the syntax, as you have nested quotes.
So indeed, that won't work.
You could place the whole link between the Conditional Content tags and place a second after the else tag.

But it is prabably better/easier to not use Conditional Content for this at all. Seeing these are css classed, you can simply use media queries in your stylesheet to style stuff differently per screen width.

1 year 3 months ago #73001

Laurent From47's Avatar Laurent From47

Yes of course, thanks