Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter whoiam

    (@whoiam)

    @andrew thank you for tips.
    Reverted call to function in accordance with noConflict() mode and have:

    <script type="text/javascript">jQuery(document).ready(function(){
               jQuery(".site-header").autofix_anything();
           });</script>

    It seems to be working this way.

    Thread Starter whoiam

    (@whoiam)

    Found in blogs: “The @import can be removed from the style.css in the child theme. This is all done in the parent theme. The reason is that this will allow to load the sites faster.”
    Also it is indicated in
    https://gtmetrix.com/avoid-css-import.html
    I wonder if imporing parent’s css is really needed? And would it help to minify css and js vi mod_pagespeed?

    Forum: Plugins
    In reply to: Compression with PHP
    Thread Starter whoiam

    (@whoiam)

    Is that right way to place code into functions.php or directly into header.php ?

    require_once('compress_timestamp.php');         //load timestamp created by compress.php module sets field $compress_stamp=unix_timestamp
    if (stripos($_SERVER['HTTP_ACCEPT_ENCODING'],'GZIP')!==false)
            $gz='gz';
     else
            $gz=null;
    echo '<link rel="stylesheet" type="text/css" href="min/css_schedule_'.$compress_stamp.'.css'.$gz.'" />',PHP_EOL;
    //    the following scripts were combined into css_schedule
          echo '<link rel="stylesheet" type="text/css" href="style.css" />',PHP_EOL;
          echo '<link rel="stylesheet" type="text/css" href="../twentyfourteen/style.css" />',PHP_EOL;
    //      echo '<link rel="stylesheet" type="text/css" href="CSS/sprite.css" />',PHP_EOL;
    //      echo '<link rel="stylesheet" type="text/css" href="CSS/iCal.css" />',PHP_EOL;

    I indicated paths to css files: child and parent, but no data in compress_timestamp.php appears. Where am I wrong?

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