Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter washingtonsblog

    (@washingtonsblog)

    James,

    Thanks. I guess I’ll leave as is for now.

    Forum: Plugins
    In reply to: Autoptimize problem
    Thread Starter washingtonsblog

    (@washingtonsblog)

    Frank,

    Thank you! Got it working with:

    define(“AUTOPTIMIZE_LEGACY_MINIFIERS”,”true”);

    Now, I’ve got to beat back that render-blocking JavaScript and CSS in above-the-fold …

    Forum: Plugins
    In reply to: Autoptimize problem
    Thread Starter washingtonsblog

    (@washingtonsblog)

    Frank,

    I fixed the CSS code. But when I put the critical css in above-the-fold through Autoptimize, the website comes up blank. In other words, it somehow blocks ALL code from showing.

    Here’s the above-the-fold CSS code I’m trying to use:

    html,
    body,
    div,
    span,
    h1,
    h2,
    h3,
    p,
    a,
    em,
    img,
    ins,
    center,
    ul,
    li,
    form,
    label {
      background: transparent;
      border: 0;
      margin: 0;
      padding: 0;
      vertical-align: baseline;
    }
    
    body {
      line-height: 1;
    }
    
    h1,
    h2,
    h3 {
      clear: both;
      font-weight: normal;
    }
    
    ul {
      list-style: none;
    }
    
    a img {
      border: none;
    }
    
    #container {
      float: left;
      margin: 0 -240px 0 0;
      width: 100%;
    }
    
    #content {
      margin: 0 245px 0 20px;
    }
    
    #primary {
      float: right;
      overflow: hidden;
      width: 220px;
    }
    
    body,
    input {
      font-family: Georgia, "Bitstream Charter", serif;
    }
    
    #access .menu,
    #site-title,
    .entry-meta,
    .entry-title,
    .navigation,
    .widget-title {
      font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    }
    
    input[type="submit"] {
      font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    }
    
    #access .menu-header,
    #branding,
    #main,
    #wrapper {
      margin: 0 auto;
      width: 1012px;
    }
    
    #wrapper {
      background: #fff;
      margin-top: 20px;
      padding: 0 20px;
    }
    
    body {
      background: #f1f1f1;
    }
    
    body,
    input {
      color: #000000;
      font-size: 12px;
      line-height: 18px;
    }
    
    p {
      margin-bottom: 18px;
    }
    
    ul {
      list-style: square;
      margin: 0 0 18px 1.5em;
    }
    
    ul ul {
      margin-bottom: 0;
    }
    
    em {
      font-style: italic;
    }
    
    ins {
      background: #FFFFFF;
      text-decoration: none;
    }
    
    a:link {
      color: #0066cc;
    }
    
    .screen-reader-text {
      clip: rect(1px, 1px, 1px, 1px);
      overflow: hidden;
      position: absolute !important;
      height: 1px;
      width: 1px;
    }
    
    #header {
      padding: 0 0 0 0;
    }
    
    #site-title {
      display: none;
    }
    
    #site-title a {
      display: none;
    }
    
    #site-description {
      display: none;
    }
    
    #branding img {
      display: block;
      float: none;
      width: 900px;
      margin-left: auto;
      margin-right: auto;
    }
    
    #access .menu-header {
      font-size: 13px;
      margin-left: auto;
      margin-right: auto;
      width: 928px;
    }
    
    #access .menu-header ul {
      list-style: none;
      margin: 0;
    }
    
    #access {
      display: block;
      text-align: center;
    }
    
    #access ul {
      display: inline-block;
    }
    
    #access .menu-header li {
      float: left;
      position: relative;
    }
    
    #access a {
      color: #aaa;
      display: block;
      line-height: 20px;
      padding: 0 16px;
      text-decoration: none;
    }
    
    #main {
      clear: both;
      overflow: hidden;
      padding: 40px 0 0 0;
    }
    
    #content {
      margin-bottom: 36px;
    }
    
    #content {
      color: #333;
      font-size: 16px;
      line-height: 24px;
    }
    
    #content p {
      margin-bottom: 24px;
    }
    
    #content h2 {
      color: #000099;
      line-height: 1.5em;
      margin: 0 0 20px 0;
    }
    
    .hentry {
      margin: 0 0 48px 0;
    }
    
    #content .entry-title {
      color: #000;
      font-size: 21px;
      font-weight: bold;
      line-height: 1.3em;
      margin-bottom: 0;
    }
    
    .entry-title a:link {
      color: #000;
      text-decoration: none;
    }
    
    .entry-meta {
      color: #777;
      font-size: 12px;
    }
    
    .entry-content {
      clear: both;
      padding: 12px 0 0 0;
    }
    
    img.wide {
      width: 100%;
      max-width: 100%;
      height: auto;
    }
    
    .entry-meta a {
      color: #777;
    }
    
    .navigation {
      color: #777;
      font-size: 12px;
      line-height: 18px;
      overflow: hidden;
    }
    
    .navigation a:link {
      color: #777;
      text-decoration: none;
    }
    
    .nav-previous {
      float: left;
      width: 50%;
    }
    
    .nav-next {
      float: right;
      text-align: right;
      width: 50%;
    }
    
    #nav-above {
      margin: 0 0 18px 0;
    }
    
    #nav-above {
      display: none;
    }
    
    input[type="submit"] {
      color: #333;
    }
    
    .widget-area ul {
      list-style: none;
      margin-left: 0;
    }
    
    .widget-area ul ul {
      list-style: square;
      margin-left: 1.3em;
    }
    
    .widget_search label {
      display: none;
    }
    
    .widget-container {
      word-wrap: break-word;
      -webkit-hyphens: auto;
      -moz-hyphens: auto;
      hyphens: auto;
      margin: 0 0 18px 0;
    }
    
    .widget-title {
      color: #222;
      font-weight: bold;
    }
    
    .widget-area a:link {
      text-decoration: none;
    }
    
    @media only screen and (max-device-width: 480px) {
      .widget-area {
        display: none !important;
      }
    
      #main .widget-area ul {
        margin-left: 0;
        padding: 0 20px 0 0;
      }
    
      #main .widget-area ul ul {
        border: none;
        margin-left: 1.3em;
        padding: 0;
      }
    
      #access,
      .entry-meta,
      .navigation,
      .widget-area {
        -webkit-text-size-adjust: 120%;
      }
    
      #site-description {
        -webkit-text-size-adjust: none;
      }
    }

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Never mind … I figure it out. Thanks!

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Thank you, works like a charm. As a follow-up question, is there a way to set that 100% width CSS attribute for only SOME of the images, and then invoke that attribute for certain classes of images, but not others?

    In other words, I almost always want the 100% width, but occasionally there’s an image with low resolution that I need smaller.

    So could I create one CSS attribute for 100% width, and a second that keeps the width/height pixel settings I manually type in the html code in the individual post?

    Thread Starter washingtonsblog

    (@washingtonsblog)

    doubledesign,

    Thank you. Do I want to throw in height: auto; ?

    Like this:

    .entry-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    }

    ??

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Marked as resolved.

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Thank you, Michael! “you would only add the stuff inbetween, but without the actual, <style> and </style>” is so simple even a newbie like me can understand!

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Please ignore <textarea> … I didn’t know that would show!

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Does it have something to do with the fact that I’ve minified and concatenated my scripts and styles?

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Thanks, AJ. Adding jquery.sonar.min.js and deleting lazy-load from exclusions DID in fact work. You are a blackbelt in js!

    One more question (or should this be on a separate thread?) Google PageSpeed says I should A. remove certain render-blocking javascripts and B. optimize css delivery of (1) https://www.washingtonsblog.com/wp-content/cache/autoptimize/css/autoptimize_bca8259833dc5c5608f3f0874293ee87.css and (2) https://www.washingtonsblog.com/?action=display_custom_css_code .

    Is this something I can do via Autoptimize … or do I need another plugin (such as “Above The Fold Optimization”) to do so?

    Thread Starter washingtonsblog

    (@washingtonsblog)

    AJ (and Frank),

    THANK YOU! This worked like a charm! All best.

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Hi Frank, disabling “Optimize JavaScript Code?” restores the images. What’s the next step?

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Frank, thanks. But If you look at one of the pages with images – for example, this one: https://www.washingtonsblog.com/2016/05/much-liberty-americans-left.html – the images show when Autoptimize is deactivated, but disappear when activated.

    Thread Starter washingtonsblog

    (@washingtonsblog)

    Mark, THANK YOU!!!

Viewing 15 replies - 1 through 15 (of 20 total)