Amin Sabet Well-known member Licensed customer Apr 21, 2017 #1 Is there any code I can use in EXTRA.css to hide account upgrades in responsive? I'm submitting a web wrapper app to the Apple app store, and they don't allow it since it bypasses their revenue scheme for in-app payments.
Is there any code I can use in EXTRA.css to hide account upgrades in responsive? I'm submitting a web wrapper app to the Apple app store, and they don't allow it since it bypasses their revenue scheme for in-app payments.
P Paul B XenForo moderator Staff member Licensed customer Apr 21, 2017 #2 Media queries can be used to hide content based on the viewport width. https://xenforo.com/community/resources/responsive-design.2193/ Upvote 0 Downvote
Media queries can be used to hide content based on the viewport width. https://xenforo.com/community/resources/responsive-design.2193/
Amin Sabet Well-known member Licensed customer Apr 21, 2017 #3 Thanks, Brogan. Can you recommend CSS that will hide the account upgrades link without hiding the rest of the user control panel? Upvote 0 Downvote
Thanks, Brogan. Can you recommend CSS that will hide the account upgrades link without hiding the rest of the user control panel?
P Paul B XenForo moderator Staff member Licensed customer Apr 21, 2017 #4 This guide will help you identify the template and associated classes: https://xenforo.com/community/resources/how-to.4390/ Upvote 0 Downvote
This guide will help you identify the template and associated classes: https://xenforo.com/community/resources/how-to.4390/
Amin Sabet Well-known member Licensed customer Apr 23, 2017 #5 In case anyone else is looking to do this in order to get a web wrapper app in compliance with app store policies, here is the solution I used: Edit the template navigation_visitor_tab and change Code: <li><a href="{xen:link account/upgrades}"> to Code: <li class="hideupgrades"><a href="{xen:link account/upgrades}"> Add the following to template EXTRA.css: Code: @media (max-width:@maxResponsiveWideWidth) { .hideupgrades { display: none; } } Upvote 0 Downvote
In case anyone else is looking to do this in order to get a web wrapper app in compliance with app store policies, here is the solution I used: Edit the template navigation_visitor_tab and change Code: <li><a href="{xen:link account/upgrades}"> to Code: <li class="hideupgrades"><a href="{xen:link account/upgrades}"> Add the following to template EXTRA.css: Code: @media (max-width:@maxResponsiveWideWidth) { .hideupgrades { display: none; } }