Can anyone tell me why this is not working?
<?php $max=3; ?>
<span class="show-for-medium-only"><?php $max=4;?></span>
I'm setting $max to 3. Then if the screen size is medium it should change the value to 4.
But the value goes to 4 whatever the screen size. Yet if I add some text to the line :-
<span class="show-for-medium-only"><?php $max=4;?>MEDIUM</span>
$max is still always 4 and yet MEDIUM is correctly only printed on medium size screens?