Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Maulik Posted December 1, 2017 Posted December 1, 2017 Hello, I have customized the header of our website and it comes same in all the topic, profile etc pages of forum. But when I tried to login in the website with wrong username /password, it brings to default login page say for example : https://invisioncommunity.com/login/ You can see that https://invisioncommunity.com has the same header as it's login page. But in our case, header get changed. Home page : http://prntscr.com/hhp62d Sign in error page : http://prntscr.com/hhp6pr We're not getting what's wrong with the sign in page. Note : We have attached 2 files here for reference. Please help ! TIA. globalTemplate.txt logo.txt
bfarber Posted December 1, 2017 Posted December 1, 2017 Some pages use CSS class ipsLayout_minimal which adjusts the header somewhat. You'll need to take a look at your CSS in order to adjust the header logo for the minimal page.
Maulik Posted December 2, 2017 Author Posted December 2, 2017 Yes, we got that thing but if we already tried by removing that class then also the header wasn't same as home page and other pages. Say for example check this one in which we have removed class ipsLayout_minimal from Body tag. http://prntscr.com/hi0cw7
Maulik Posted December 4, 2017 Author Posted December 4, 2017 @bfarber : Would you please let's know which default template is used for showing minimal layout ? OR which layout is used for term and sign in error pages so we can change the layout ? Because we want similar header & footer in whole website.
bfarber Posted December 4, 2017 Posted December 4, 2017 The same globalTemplate template is used, we simply use the CSS class 'ipsLayout_minimal' on the body tag to adjust the layout. Note that the navBar template specifically also checks if this CSS class is used to adjust the HTML being output, so just removing the class in your devtools won't add the navBar template contents back in. You'd need to edit this template to stop doing that.
Maulik Posted December 7, 2017 Author Posted December 7, 2017 Yes, that I know. Body tag is looking like this : <body class='ipsApp ipsApp_front {{if isset( \IPS\Request::i()->cookie['hasJS'] )}}ipsJS_has{{else}}ipsJS_none{{endif}} ipsClearfix{{foreach output.bodyClasses as $class}} {$class}{{endforeach}}' {{if output.globalControllers}}data-controller='{expression="implode( ',', output.globalControllers )"}'{{endif}} {{if isset( output.inlineMessage )}}data-message="{expression="output.inlineMessage"}"{{endif}} data-pageApp='{$location['app']}' data-pageLocation='front' data-pageModule='{$location['module']}' data-pageController='{$location['controller']}'> Can I know which condition is applying for 'ipsLayout_minimal' ? So I can remove it for specific pages. Thanks.
bfarber Posted December 7, 2017 Posted December 7, 2017 {{foreach output.bodyClasses as $class}} {$class}{{endforeach}} to {{foreach output.bodyClasses as $class}}{{if $class != 'ipsLayout_minimal'}} {$class}{{endif}}{{endforeach}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.