WordPress.org

Ready to get started?Download WordPress

Forums

Email Address Encoder
[resolved] Where to add filter for footer (9 posts)

  1. mookouw
    Member
    Posted 1 year ago #

    I have read the FAQs but I am not a coder. Could you please be more specific about where the filter should go so I can get this to work in the footer? My theme does support filters.

    From the FAQs, what do I do with: add_filter($tag, 'eae_encode_emails');

    Thanks so much!

    http://wordpress.org/extend/plugins/email-address-encoder/

  2. Till Krüss
    Member
    Plugin Author

    Posted 1 year ago #

    What's the Theme you're using?

  3. mookouw
    Member
    Posted 1 year ago #

    Genesis

    Thanks!

  4. Till Krüss
    Member
    Plugin Author

    Posted 1 year ago #

    Are you already using the genesis_footer_creds_text filter or the genesis_footer action to customize your site's footer?

  5. mookouw
    Member
    Posted 1 year ago #

    I am using the genesis_footer_creds_text filter.

    Thanks again!

  6. Till Krüss
    Member
    Plugin Author

    Posted 1 year ago #

    May I see the code of the function that is called for the genesis_footer_creds_text filter? (pastebin.com)

  7. mookouw
    Member
    Posted 1 year ago #

    I got the following advice from a friend and it worked great!

    "Instead of digging into Genesis, it would probably be easier to just put the desired email address into a post, then open the post, get the generated html and insert that into the footer."

    I hope this helps anyone else with the same problem.

  8. mookouw
    Member
    Posted 1 year ago #

    I found an even easier way to get this plugin to work in the footer. Use the plugin Custom Post Widget. Make a new Content Block with the email address in it. Put the Content Block into the footer and the email address will be encoded. It works great!

  9. Till Krüss
    Member
    Plugin Author

    Posted 1 year ago #

    In case you'd want to fiddle around in your PHP code, you can either encode an email directly:

    <?php
    echo eae_encode_str('foo@bar.com');
    ?>

    Or you can encode all email addresses in a string:

    <?php
    $string = 'This is a string contains an email address: foo@bar.com';
    echo eae_encode_emails($string);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.