XF 1.4 Responsive design conditional

reddy ink

Active member
I would like tagline NOT show in responsive design in RM

Is this the conditional statement in resource_list_view

<xen:if is="@enableResponsive">
{$resource.tag_line}
</xen:if>
 
Styles are either responsive or they aren't.
It's not something which is device dependent.

If a style is set as responsive then the responsive flag is true, otherwise not.

You can use media queries which are based on the device width - see the link in my signature for a guide.
 
Showing/hiding elements is done by using media queries. Conditional statement only checks if responsive design is enabled and hides media queries if it is disabled, it doesn't control anything other than that.

Add this to extra.css:
Code:
<xen:if is="@enableResponsive">
@media (max-width:@maxResponsiveWideWidth)
{
  .resourceInfo .tagLine { display: none; }
}
</xen:if>
 
Back
Top Bottom