jfialkowski Posted September 21, 2013 Share Posted September 21, 2013 Hi folks. I have a site that I need the .whmcscontainer .contentpadded css object, to be transparent on certain pages. It seems to work when I visit the main page but if I click on a link to view an announcement, the css element doesn't change when the page loads. Its like its caching the header or something. Can anyone give me an idea of what I may be doing wrong and how I can make it work? Here is my code from header.tpl. <div class="whmcscontainer"> {if $filename eq "homepage" or "index" or "xen-vps-hosting" or "dedicated-servers" or "web-hosting"} <div class="contentpaddedclear"> {else} <div class="contentpadded> {/if} Here are the CSS elements: .whmcscontainer .contentpadded { background-color: #FDFCFC; border-radius: 5px; padding: 20px; } .whmcscontainer .contentpaddedclear { background-color: transparent; border-radius: 5px; padding: 20px; } 0 Quote Link to comment Share on other sites More sharing options...
WebsiteIntegrations Posted September 21, 2013 Share Posted September 21, 2013 Hi, please try {if $filename eq 'homepage' or $filename eq 'index' or $filename eq 'xen-vps-hosting' or $filename eq 'dedicated-servers' or $filename eq 'web-hosting'} OR {if $filename eq 'homepage' || $filename eq 'index' || $filename eq 'xen-vps-hosting' || $filename eq 'dedicated-servers' || $filename eq 'web-hosting'} instead of {if $filename eq "homepage" or "index" or "xen-vps-hosting" or "dedicated-servers" or "web-hosting"} 0 Quote Link to comment Share on other sites More sharing options...
jfialkowski Posted September 22, 2013 Author Share Posted September 22, 2013 Hi, please try {if $filename eq 'homepage' or $filename eq 'index' or $filename eq 'xen-vps-hosting' or $filename eq 'dedicated-servers' or $filename eq 'web-hosting'} OR {if $filename eq 'homepage' || $filename eq 'index' || $filename eq 'xen-vps-hosting' || $filename eq 'dedicated-servers' || $filename eq 'web-hosting'} instead of {if $filename eq "homepage" or "index" or "xen-vps-hosting" or "dedicated-servers" or "web-hosting"} Thank you, that worked great. Cheers, Joe 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.