View Full Version : Change deisgn when logged
Cancemi Marc
May 30, 2013, 03:40 PM
Hi,
Everything is in the title...!
Could it be possible to change design (exemple background-img or background-color) when people are logged ?
Thanks in advance for your reply,
Marc
Steffen Buschkemper
May 30, 2013, 04:24 PM
Hi Marc,
of course it is possible.
You need only something knowledge in CSS
and the following condition in header.tpl.
Example for Inline CSS style
{if $isLogin}
{literal}
<style type="text/css">
<-- Here your CSS Inline code -->
</style>
{/literal}
{/if}
But if you want to change after login the original style.css with a custom style.css then use the following condition in header.tpl...
Example for CSS file change
{if $isLogin}
<link href="{$rlTplBase}css/login_style.css" type="text/css" rel="stylesheet" />
{else}
<link href="{$rlTplBase}css/style.css" type="text/css" rel="stylesheet" />
{/if}
Best regards
Steffen
Cancemi Marc
May 30, 2013, 08:30 PM
Many thanks you are a king ! really easy to do, for the moment i use the fisrt method, but if the client want something more advanced , i will use the second.
Thanks again,
Marc
Steffen Buschkemper
May 30, 2013, 08:34 PM
No problem. :)
You are welcome.
Best regards
Steffen
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.