Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Conditional for "reponsive"
Mixy Offline
Junior Member
**
Posts: 1
Joined: Jan 2019
Post: #1
Conditional for "reponsive"
Hi there, I'm trying to make some modifications for mobile users and one thing I want is to set collapsed by default the categories on my index.

For this I need to change in forumbit_depth1_cat

<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">

to

<tbody style= "display: none" id="cat_{$forum['fid']}_e">

But I'm not quire sure for the 'responsive' conditional. I've tried:

Code:
<if media=(max-width: 420px) then>
	<tbody style= "display: none" id="cat_{$forum['fid']}_e">
<else>
               <tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
</if>


And some variations with "" and the @media but they don't work. If someone could guide me, I would be very grateful. Thank you.

(This post was last modified: 03-16-2019 11:25 AM by Mixy.)
03-16-2019 11:24 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,333
Joined: Mar 2010
Post: #2
RE: Conditional for "reponsive"
Note that any conditional will be translated into PHP.
media=(max-width: 420px) is not a PHP thingy (AFAIK).

03-17-2019 10:23 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: