Code Monkey home page Code Monkey logo

Comments (9)

tevko avatar tevko commented on June 3, 2024

There could be a few reasons that this isn't working on your site. Are you seeing any specific error messages? Can you post the resulting image markup after grabbing an image using the wordpress editor?

from wp-tevko-responsive-images.

jhned avatar jhned commented on June 3, 2024

Just a stab in the dark, but tinyMCE might be stripping the srcset for older versions of WordPress, I know they only just fixed that bug in 4.1.

from wp-tevko-responsive-images.

tevko avatar tevko commented on June 3, 2024

@jhned that's more than likely what's causing it

from wp-tevko-responsive-images.

tevko avatar tevko commented on June 3, 2024

@mdmcginn I implemented a fix before being told that 4.1 would finally address the issue - 89a4526

from wp-tevko-responsive-images.

mdmcginn avatar mdmcginn commented on June 3, 2024

tinyMCE is likely my problem. The resulting image markup has no srcset. I don't see any error messages.

from wp-tevko-responsive-images.

tevko avatar tevko commented on June 3, 2024

So then a (possibly hackey) fix would be to add this to your functions.php file 89a4526

as far as supporting older versions of WP, I think it's best to encourage users to update

from wp-tevko-responsive-images.

mdmcginn avatar mdmcginn commented on June 3, 2024

After adding the fix, I got Fatal error: Cannot redeclare override_mce_options() (previously declared in /srv/www/vhosts/dmc-wp/wp-content/themes/tamutoday/functions.php:20) in /srv/www/vhosts/dmc-wp/wp-content/plugins/respimg/wp-tevko-responsive-images.php on line 44

from wp-tevko-responsive-images.

tevko avatar tevko commented on June 3, 2024

then in your themes functions.php file, around line 20, make sure that the override_mce_options() function includes the same parameters that exist in 89a4526

from wp-tevko-responsive-images.

mdmcginn avatar mdmcginn commented on June 3, 2024

Error because I'm using an earlier version of the plugin which already contained 89a4526.

Okay. It's legitimate to tell people "Upgrade if you want it to work".

from wp-tevko-responsive-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.