Blank images when used with WP Offload S3 (CDN)

rob's Avatar

rob

10 Jul, 2018 05:08 PM

Hey -

When using WP Offload S3 (https://deliciousbrains.com/wp-offload-s3/), images and thumbnails are no longer generated and come up blank. When that plugin is disabled, the slideshow works fine. I did try and re-save the slide to make sure the cache is updated, etc. Any idea what's going on? Are the two not compatible?

HOWEVER, as I write this, everything works correctly if I leave "Main image width" and "Main image height" as well as "Thumb image width" and "Thumb image height" completely blank. So it has to do with those two settings?

Just letting you know.

Rob

  1. Support Staff 1 Posted by Dmitry Semenov on 10 Jul, 2018 05:21 PM

    Dmitry Semenov's Avatar

    Hello,

    Dynamic image resizing feature won't work with CDNs, you have to use default WordPress image sizes.

    By default (when values in Image Options are blank) slider uses "large" image size for main images and "thumbnail" image size for thumbnails. If you want to use different WordPress image sizes - there is a filter - http://help.dimsemenov.com/kb/wordpress-royalslider-advanced/wp-usi...

  2. 2 Posted by rob on 10 Jul, 2018 05:23 PM

    rob's Avatar

    Perfect, thanks!

    Rob

  3. 3 Posted by rob on 12 Jul, 2018 02:20 PM

    rob's Avatar

    Thank you!

    Another question - the "Caption" option only puts the slide's title and not
    description. How can I change this globally (using the WP plugin) so
    there's the description HTML markup below the title? Any filters?

    Rob

  4. Support Staff 4 Posted by Dmitry Semenov on 12 Jul, 2018 04:10 PM

    Dmitry Semenov's Avatar

    It depends on layout that you're using, but generally you need to click on Edit Slide Markup in general options and add the code as described at http://help.dimsemenov.com/kb/wordpress-royalslider-tutorials/wp-us...

  5. 5 Posted by rob on 12 Jul, 2018 06:33 PM

    rob's Avatar

    Thanks, got it working.

    And is there a way to add paragraphs to $description output? Like run it
    through wpautop in Mustache somehow? I noticed it shows up as one big text.

    I'm using this:

    {{#description}}
      <div class="rsCaption">
        {{description}}
    </div>
      {{/description}}

    Rob

  6. 6 Posted by rob on 12 Jul, 2018 06:49 PM

    rob's Avatar

    Nevermind, I made a custom Mustache variable {{description_html}} that works:

    function newrs_add_description_html( $m, $data, $options ) {
    
        $m->addHelper( 'description_html', function() use ( $data ) {
    
          return wpautop( $data['description'] );
    
        } );
    
    }
    add_filter( 'new_rs_slides_renderer_helper','newrs_add_description_html', 10, 4);
    
  7. rob closed this discussion on 31 Oct, 2018 05:41 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac