Hello.
I'm want the infotext at the top of the page to be close be default - with an option to open. How do I do this?
Infobox always closed
3 posts from 2 voices-
Posted 6 months ago #
-
Hi maustnes,
Kindly open wp-content/themes/angular/functions.php and find this code block:
function avia_banner($padding = 0) { $extraClass = "minimized"; $output = ""; $cookieHash = ""; $bannerText = avia_get_option('banner'); $cookieName = THEMENAME.'_avia_banner'; $bannerHash = md5($bannerText); $padding = $padding * 43; if(!trim($bannerText)) return; if( empty($_COOKIE[$cookieName])) $extraClass = "minimized firstcall"; if(!empty($_COOKIE[$cookieName])) $cookieHash = $_COOKIE[$cookieName]; if(!empty($_COOKIE[$cookieName]) && $bannerHash != $cookieHash) $extraClass = "maximized";Replace all minimized to maximized and maximized to minimized, or you can just copy this code:
function avia_banner($padding = 0) { $extraClass = "maximized"; $output = ""; $cookieHash = ""; $bannerText = avia_get_option('banner'); $cookieName = THEMENAME.'_avia_banner'; $bannerHash = md5($bannerText); $padding = $padding * 43; if(!trim($bannerText)) return; if( empty($_COOKIE[$cookieName])) $extraClass = "maximized firstcall"; if(!empty($_COOKIE[$cookieName])) $cookieHash = $_COOKIE[$cookieName]; if(!empty($_COOKIE[$cookieName]) && $bannerHash != $cookieHash) $extraClass = "minimized";Hope this helps. :)
Regards,
IsmaelPosted 6 months ago # -
Great! Thanks
Posted 6 months ago #
Topic Closed
This topic has been closed to new replies.














