• Resolved manuplus

    (@manuplus)


    Hi Lester,

    thanks for your great plugin, using it for few years and really makes a good job.
    I’m redesigning a website using it, and I’d like to use/insert my own CSS classes (cannot just override CSS) in the email form.
    But seems there’s no hook in your wp-email.php so I could override it using a filter.
    Any advise or other way to achieve it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Copy out email-standalone.php to your theme folder and modify it accordingly? In this way the plugin will load from your theme version rather than the plugin’s one

    Thread Starter manuplus

    (@manuplus)

    Thanks for youy reply Lester.
    Don’t know if it’s there I can achieve what I want to (or don’t know how).

    In your wp-email, the interesting part for me is th one that allows to insert html, in this function :

    ### Function: E-Mail Form
    function email_form($content, $echo = true, $subtitle = true, $div = true, $error_field = ”) {
    // …
    }

    Could I achieve it in email-standalone.php?
    Thanks for your reply,

    Manu

    Plugin Author Lester Chan

    (@gamerz)

    Yes that is a full HTML page which just loads the email_form() function that replaces the_content()

    Thread Starter manuplus

    (@manuplus)

    I don’t understand your answer, excuse me… Or maybe I turned my question in a bad way.
    I’m using the email-popup.php, in which there’s a call to the email function (email_form(true))…

    The part I want to overwrite is the form (html tags and CSS).
    How would it be possible in the standalone.php file?!

    Plugin Author Lester Chan

    (@gamerz)

    Ah I see, I got your question now. Unfortunately that is not possible to insert your own classes via PHP. Alternatively, you can do it via JS when the page is loaded, manually use jQuery addClass to add a class to it.

    Thread Starter manuplus

    (@manuplus)

    Hi Lester,

    ok, thanks for your reply, that’s what I finally made ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hook for email_form function’ is closed to new replies.