Viewing 5 replies - 16 through 20 (of 20 total)
  • Plugin Author Frank Goossens

    (@futtta)

    not happy with just reverting line 323 back to the 1.4 version, I did some more comparisons between the two tabs with your site, one with AO 1.4 and one with 1.5 and I think I found the root cause:

    • in AO 1.5 the CSS was added in reversed order (so CSS 2 would get loaded before CSS 1)
    • the CSS for #aside (and other id’s) was in two CSS-files (one for media=screen and one for media=all
    • because of the inversion of CSS, the position of #aside was set as ‘relative’ when using AO 1.5 but was correctly overridden as ‘absolute’ in 1.4
    • this only impacted the HP, because there the #aside is not inside #holder, which is the case for the other pages

    A workaround-solution would be to mark ‘position:absolute !important’ for #aside in the HP-specific CSS.

    To solve the reversed order problem in Autoptimize 1.5, without reverting to the version 1.4 replacer-thingie on line 323, could be to replace our current workaround:

    $this->content = str_replace('</head>','<link type="text/css" media="'.$media.'" href="'.$url.'" rel="stylesheet" /></head>',$this->content);

    with:
    $this->content = str_replace('<title>','<link type="text/css" media="'.$media.'" href="'.$url.'" rel="stylesheet" /><title>',$this->content);

    Hope you have time to test this, if this works I might push out version 1.5.1 in the near future.

    Thread Starter fotofashion

    (@fotofashion)

    Sorry for the late reply. And yes, that works as well. Looks like 1.5.1 is just around the corner. ??

    Plugin Author Frank Goossens

    (@futtta)

    super! ??

    Plugin Author Frank Goossens

    (@futtta)

    I just pushed out 1.5.1 which has the CSS order bug fixed, would be happy if you could test & confirm if the problem is solved.

    Thread Starter fotofashion

    (@fotofashion)

    Yes, works flawless. Thank you for the update!

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Home page corrupted’ is closed to new replies.