br workaround for issue 64492 shows a space on every page br workaround for issue 64492 shows a space on every page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

br workaround for issue 64492 shows a space on every page

Started by allvip, February 01, 2014, 11:39:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

Because of <br /> <!-- workaround for issue 64492 - do not remove the line break! --> under token {GALLERY} I have a space on every page that shows the body background color:white.

The displayimage.php is black but it shows a white space before the footer - the br.
If I make the body background color black will show a black space before the footer on the white pages.

I made the #cpg_main_block_outer in style.css background-color:transparent; because the br is in div #cpg_main_block_outer so the br has his background-color.

I added at the end of function pageheader (copy it from themes/sample/theme.php if is not in your theme.php):


if ($CPG_PHP_SELF == 'displayimage.php') {
    echo '<body style="background-color:#000000;">';
}

ΑndrĂ©

Depending on your theme you maybe could also remove that line. It was added because there was a minor display issue with the default theme "curve" (see here).