Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 12, 20223 yr Hi, I would like to display some custom icons (available payments) in my community footer but only when the Commerce app is displayed. Which variable should I test in global/footer to do that, please? Something like {{if ( $app ) == 'nexus'}} or should I try to find '/store/' in {expression="request.url()"}? (and I don't know how to do that too, by the way). 😕
January 12, 20223 yr Community Expert Thanks for posting! Unfortunately, this issue is beyond the scope of our technical support. 👩💻 Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications. I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.
January 12, 20223 yr you can do that by CSS /* everywhere hidden */ .someclassName { display:none; } /* visible only on store */ body[data-pageapp="nexus"] .someclassName { display:block; } Edited January 13, 20223 yr by Lukazuki ❤
January 13, 20223 yr {{if \IPS\Dispatcher::i()->application->directory == 'nexus'}} Your code to show only inside commerce {{endif}}
February 14, 20232 yr {{if \IPS\Dispatcher::i()->application->directory == 'nexus'}} Your code to show only inside commerce {{endif}} and . . . how can I exclude an app ??
February 14, 20232 yr {{if \IPS\Dispatcher::i()->application->directory != 'nexus'}} Your code to show everywhere except in commerce {{endif}}