Support » Plugin: Email Address Encoder » Doesn’t work with WPBakery aka Visual Composer?

  • Resolved thoughton

    (@thoughton)


    I’ve been looking at possibly using this plugin, but it doesn’t seem to work with WPBakery/Visual Composer content?

    Is that true? Or is there some way to make it work?

    Edit: Nevermind, figured it out by looking in the FAQ. Should have done that first 😛

    You can use
    [encode technique=”js”]steve@apple.com[/encode] in a Visual Composer text module and then the email is encoded properly.

    Edit 2: You need to do it twice for a ‘mailto’ link, e.g.:

    <a href='mailto:[encode technique="js"]steve@apple.com[/encode]'>[encode technique="js"]steve@apple.com[/encode]</a>

    • This topic was modified 2 months, 1 week ago by  thoughton.
    • This topic was modified 2 months, 1 week ago by  thoughton.
    • This topic was modified 2 months, 1 week ago by  thoughton.
    • This topic was modified 2 months, 1 week ago by  thoughton.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    @thoughton: That’s right, except the “js” technique only works with the premium version, so you can use this snippet with the free one:

    
    <a href="mailto:[encode]steve@apple.com[/encode]">[encode]steve@apple.com[/encode]</a>
    
    Plugin Author Till Krüss

    (@tillkruess)

    Also, Visual Composer probably has some WordPress filters they provide that you could use to encode all email automatically, it will look something like:

    
    if ( function_exists( 'eae_encode_emails' ) )  {
        add_filter( 'visual-composer/the_content', 'eae_encode_emails' );
    }
    

    You’ll have to ask their support team for the exact filter name.

    Plugin Author Till Krüss

    (@tillkruess)

    Alternatively, the Premium version of this plugin will handle all of that for you, without the need for any extra filters or coding.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.