R reddy ink Active member Feb 4, 2015 #1 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>
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>
P Paul B XenForo moderator Staff member Feb 5, 2015 #2 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. Upvote 0 Downvote
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.
R reddy ink Active member Feb 5, 2015 #3 Thank you for the reply. I was looking for a conditional statement to hide some text when seen on mobile devices. Example: tagline on resource_index. Upvote 0 Downvote
Thank you for the reply. I was looking for a conditional statement to hide some text when seen on mobile devices. Example: tagline on resource_index.
H HappyWorld Well-known member Feb 5, 2015 #4 reddy ink said: Thank you for the reply. I was looking for a conditional statement to hide some text when seen on mobile devices. Example: tagline on resource_index. Click to expand... If i understand your problem correctly, you can try this add-on https://xenforo.com/community/threads/browser-detection-mobile-msie.38613/#post-466164 Upvote 0 Downvote
reddy ink said: Thank you for the reply. I was looking for a conditional statement to hide some text when seen on mobile devices. Example: tagline on resource_index. Click to expand... If i understand your problem correctly, you can try this add-on https://xenforo.com/community/threads/browser-detection-mobile-msie.38613/#post-466164
Arty Well-known member Feb 5, 2015 #5 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> Upvote 0 Downvote
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>
R reddy ink Active member Oct 16, 2015 #6 @Arty I added your suggested code to extra.css but tagline still shows in responsive design. Upvote 0 Downvote
Arty Well-known member Oct 17, 2015 #7 Probably some other rule is overriding it. Try adding !important to it Code: { display: none !important; } Upvote 0 Downvote
Probably some other rule is overriding it. Try adding !important to it Code: { display: none !important; }