Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18042

    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?

    #98009

    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,

    Ismael

    #98010

    Great! Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Infobox always closed’ is closed to new replies.