[resolved] Using Hammy with Advanced Custom Fields (2 posts)

  1. seviglius
    Posted 2 years ago #

    I've got Hammy installed and it's working great on images that are uploaded and placed inside the_content window in WordPress.

    However, I'm implementing images across the site using Advanced Custom Fields and these are not run through the_content.

    Is there to make Hammy work on all images with a specific class? it would be easy to have images called with all the same class.


    Is there a way to run the_content filter on the ACF calls so that Hammy fires?

    Any help would be much appreciated!


  2. Noel Tock
    Human Made
    Plugin Author

    Posted 2 years ago #

    There is, but not in any way I could easily describe here. You'd have to replicate the hammy function, declare a custom wrap class, custom breakpoints (unless they're the same, etc.), load in the JS files, etc. It's like copy pasting the plugin and then tweaking it for another area. I'll try to think of what we can do there down the line though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Hammy
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic