Insert email form at the bottom of each post in Genesis.

Community Forums Forums General Discussion Insert email form at the bottom of each post in Genesis.

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  braddalton 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #105860

    visible frank
    Member
    Post count: 3

    Hi, thanks for viewing.

    I would like to have an email subscribe form after each post in this genesis site. I have tried things like the following but cannot get it to work.

    function afterpost_subscribe()
    if (is_single()) { ?>
    INSERT HTML
    add_action('genesis_after_post_content' , 'afterpost_subscribe');
    ") ?>

    Have also looked at inserting the form into the template page but not sure how to get this working either, which template does Genesis use?

    Total newbie, any help welcome!

    http://www.thereluctantspeakersclub.com
    #105867

    braddalton
    Participant
    Post count: 10681

    Please copy ALL the code from the view raw link and paste it at the end of your child themes functions.php file using a text editor like Notepad++

    https://gist.github.com/braddalton/cf0c5c31020f8de00db1


    #105872

    visible frank
    Member
    Post count: 3

    thanks Brad. Should there be php tags around this? Also, is this a widget? Where do I put my form code? Into a text widget?

    Thanks!

    #105959

    braddalton
    Participant
    Post count: 10681

    Sorry for the delay, i was busy updating some code on the WordPress,org Codex.

    Install the Genesis eNews Extended plugin which includes a widget. http://www.brandonkraft.com/contrib/plugins/genesis-enews-extended/

    All the code i post here and on my site is tested.


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.