Results 1 to 7 of 7

Thread: Clunky Classipress

  1. #1
    Thread Starter
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts

    Clunky Classipress

    As much as I love and use the Classipress Theme, in it's 'out of the box' format neither the http output or the .css complies with W3.org guidelines.. as such, your website may be slower to load and some browsers may struggle to display it properly.

    Taking that into account, I tested, amended and re-tested the included .css files until they were compliant, I can supply these if anyone wants them...

    However, this does NOT resolve the issues with the 'output' http but I am not that up on php coding to trawl through all the files and make them compliant - is this something AppThemes would undertake to make one final push on this very popular theme?

    In addition to this, as a Classipress Site grows, the .http output becomes very large and really needs gzip compression, the code as follows in the header.php file in general does not work on many servers, I know I have done a lot of testing on this.
    PHP Code:
    <?php
    if ( substr_count$_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip' ) ) {
        
    ob_start"ob_gzhandler" );
    }
    else {
        
    ob_start();
    }
    ?>
    Firstly using phpinfo.php I checked that compression was enabled at "zlib.output_compression" it should be marked 'On' and the default compression level should be '6' - You can test your website at http://checkgzipcompression.com to find out whether or not it is actually working.

    If it is NOT set as 'ON' and if you are unable to edit your php config file to turn it on and your host is not that willing, you can create a web.config file (or add it to an existing file) the following code.
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <system.webServer>
    <httpCompression directory="%SystemDrive%\inetpub\
    temp\IIS Temporary Compressed Files">
    <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
    <dynamicTypes>
    <add mimeType="text/*" enabled="true"/>
    <add mimeType="message/*" enabled="true"/>
    <add mimeType="application/javascript" enabled="true"/>
    <add mimeType="*/*" enabled="false"/>
    </dynamicTypes>
    <staticTypes>
    <add mimeType="text/*" enabled="true"/>
    <add mimeType="message/*" enabled="true"/>
    <add mimeType="application/javascript" enabled="true"/>
    <add mimeType="*/*" enabled="false"/>
    </staticTypes>
    </httpCompression>
    <urlCompression doStaticCompression="true" doDynamicCompression="true"/>
    </system.webServer>
    If you are using .httaccess the add the following;

    Code:
    <IfModule mod_deflate.c>
      # Compress HTML, CSS, JavaScript, Text, XML and fonts
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE application/rss+xml
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
      AddOutputFilterByType DEFLATE application/x-font
      AddOutputFilterByType DEFLATE application/x-font-opentype
      AddOutputFilterByType DEFLATE application/x-font-otf
      AddOutputFilterByType DEFLATE application/x-font-truetype
      AddOutputFilterByType DEFLATE application/x-font-ttf
      AddOutputFilterByType DEFLATE application/x-javascript
      AddOutputFilterByType DEFLATE application/xhtml+xml
      AddOutputFilterByType DEFLATE application/xml
      AddOutputFilterByType DEFLATE font/opentype
      AddOutputFilterByType DEFLATE font/otf
      AddOutputFilterByType DEFLATE font/ttf
      AddOutputFilterByType DEFLATE image/svg+xml
      AddOutputFilterByType DEFLATE image/x-icon
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/xml
    
      # Remove browser bugs (only needed for really old browsers)
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent
    </IfModule>
    You will then need to REMOVE the GZIP Call in the header.php file to stop the system trying to invoke it twice - then re-test to ensure it is working ok - compression of the http output can be as much as 50-80% and will decrease the time it takes your site to load...!!!!!
    Demon- I shoot People
    www.demonlee.com Photography Website
    www.seemeadvert.co.uk Classipress Website
    www.imdb.me.com/demonlee Film

  2. #2
    Expired Customer webducknj's Avatar
    Join Date
    Sep 2014
    Location
    Israel
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Demon- I shoot People
    www.demonlee.com Photography Website
    www.seemeadvert.co.uk Classipress Website
    www.imdb.me.com/demonlee Film

  4. #4
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,572
    Thanks
    104
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Demon- I shoot People
    www.demonlee.com Photography Website
    www.seemeadvert.co.uk Classipress Website
    www.imdb.me.com/demonlee Film

  6. #6
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,572
    Thanks
    104
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    Thread Starter
    Veteran demonlee's Avatar
    Join Date
    Mar 2011
    Location
    Antas, Spain
    Posts
    574
    Thanks
    6
    Thanked 51 Times in 46 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Demon- I shoot People
    www.demonlee.com Photography Website
    www.seemeadvert.co.uk Classipress Website
    www.imdb.me.com/demonlee Film

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Clunky site
    By gigajobs in forum JobRoller General Discussion
    Replies: 2
    Last Post: March 15th, 2012, 12:32 PM