• In the function my_brand_adminlogo there is some code that should be adjusted to prevent issues with some plugins / pages:

    function my_brand_adminlogo() { ?> <?php $ilogo = get_option('mybrandadminlogo'); ?>
    <style type="text/css"> #header-logo { width:40px;height:40px; background : transparent url(<?php echo $ilogo; ?>) no-repeat scroll center center;} <? }

    to be changed to:

    function my_brand_adminlogo() { ?> <?php $ilogo = get_option('mybrandadminlogo'); if (empty($ilogo)) { return; } ?>
    <style type="text/css"> #header-logo { width:40px;height:40px; background : transparent url(<?php echo $ilogo; ?>) no-repeat scroll center center;} <? }

    And the same for the function my_brand_adminbg:

    function my_brand_adminbg() { ?> <?php $ibg = get_option('mybrandadminbg'); ?>
    html { background : url(<?php echo $ibg; ?>) repeat; }#footer-upgrade {color:transparent;display:none;} #footer {background-color:transparent;border-top:0px;} </style> <? }

    to be changed to:

    function my_brand_adminbg() { ?> <?php $ibg = get_option('mybrandadminbg'); if (empty($ibg)) { return; } ?>
    html { background : url(<?php echo $ibg; ?>) repeat; }#footer-upgrade {color:transparent;display:none;} #footer {background-color:transparent;border-top:0px;} </style> <? }
  • The topic ‘[Plugin: My Brand Login] Empty url() in Admin CSS rules breaks some plugins / pages’ is closed to new replies.