Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #774248

    I need to add a form to the bottom of basically all of the posts on our site. Is there an easy way to do this? We have thousands of posts that are in use needing the form.

    #774255

    If you want a quick, easy and reliable solution take a look at https://wp-buddy.com/products/plugins/content-posts-wordpress-plugin/

    If you want a native solution you can use e.g. the enfold action hook ‘ava_before_footer’ in a child theme.

    #774661

    how would the Ava_before_footer work?

    #774676

    Hi!

    It seems that you need some advanced modifications.
    it is better to consider hire a freelancer who will be able to help you with all the process.

    Thank you

    Cheers!
    Basilis

    #774677

    I have the form that will do what I need, just need a way to add a shortcode to the bottom of each post. That requires advanced modifications??

    #774681

    Can you please post a link to one of those form elements ?

    f.e. : if you place this to your functions.php of your child-theme:

    add_action('ava_before_footer', function() {
    ?>
    Content
    <?php
    });

    you will see on every page at the bottom – just before footer starts that text “Content”
    so html is possible

    but

    a form with sending options is something different – i do not know if f.e. it is possible to insert avia shortcode in it.

    • This reply was modified 7 years, 7 months ago by Guenni007.
    #774685

    The code is below, I don’t have it on any of the posts. I had it on one to test it but can’t put on one without adding to the rest at this point.

    #774688

    Sorry lucille – i’m Participant as you – so i do not see Private Content on your postings

    #774691

    try again

    Click here to Inquire how to adopt this child

    • This reply was modified 7 years, 7 months ago by Lucille.
    #774693

    <a href="javascript:void( window.open( 'https://form.jotformpro.com/70947672682974', 'blank', 'scrollbars=yes, toolbar=no, width=700, height=500' ) ) "> Click here to Inquire how to adopt this child </a>

    #774695

    haha – now i got an idea – it must be possible to place a widget there via that hook.
    if you got a widget field there are a lot of contakt widgets on wordpress.

    add_action( 'ava_before_footer', 'enfold_customization_beforefooter_widget_area' );
    function enfold_customization_beforefooter_widget_area() {
    	dynamic_sidebar( 'before-footer' );
    }

    goto widgets and create a new widget area called “before-footer”

    i placed f.e. a contact form 7 form in it
    see here: https://webers-testseite.de/kokon

    • This reply was modified 7 years, 7 months ago by Guenni007.
    #774696

    aha – jotform got no widget itself but here are some instruction to embed that form: https://www.jotform.com/answers/497948-Jotform-as-Wordpress-Widget

    if you got a shortcode from jotform you can place it in a text in that widget area
    JotForm’s Embed Form plugin

    i placed testwise a contact form 7 via shortcode this way in a text widget:

    <div class="avia-section">
    <div class="container">
    [contact-form-7 id="3235" title="Kontaktformular 1"]
    </div>
    </div>

    these divs – just to have directly the correct width of the area.

    #774698

    If I add a widget box before the footer it would be easy to add the form, but will it grab the right page url? It has a referrer in it so it tells you what the url is on the page it was sent from.

    #774700

    you see the code to register that widget area – test it !

    #774704

    I will, thank you!!

    #774743

    Hi,
    @Lucille let us know if this solves it for you.

    @Guenni007
    thanks for your great help :)

    Best regards,
    Mike

    #776396

    OK, I have a question, where do I put the code to add the widget space? I am fine with adding the form code, we use a lot of them in different places but adding a before the footer widget, where do I put that code?

    #776497

    Hi,

    You can add all the custom codes in the functions.php in your Theme Child, but if you aren`t using it, check this article: kriesi.at/documentation/enfold/using-a-child-theme/

    Best regards,
    John Torvik

    #777756

    please get familiar with using a child-theme it is very easy to create one – even afterwards you have allready settings in your parent theme.
    Enfold is very userfriendly on that. you can download a child-theme folder on documentation of enfold here.
    Unzip the file and upload that folder to your themes folder via ftp.
    Now there is on Dashboard Appearance another Enfold (but now marked as Child) Theme. After activating that, Enfold is now listed on dashboard as Enfold Child and has on Options / Import-Export the possibility to “Import Settings from your Parent Theme”

    A Child-Theme has a lot of advantages. Update of Enfold will only change things in the Enfold (Parent) Folder – all customizations will stay because you are using the Child.
    One central File in WordPress is the functions.php and that file has one difference to most of the other WordPress files. Entries in the functions.php of your child theme folder are only added to the parent theme functions.php (only if there are detailled intruction to remove parent things – these are erased) But both files are active.
    (other files like the header.php in your child-theme folder this will totaly replace the one in your parent-theme)

    So all those usefull snippets like here a short list: http://kriesi.at/documentation/enfold/code-snippets/ can be placed now in functions.php of the child-theme without loosing it on updating the theme itself.

    Enfold Team has placed a lot of little “eye” all over there code where a hook can grab in – often seen as do_action( ); with mostly some comments on it like : Hook that can be used for plugins and theme extensions (currently: the wpml language selector) etc.

    So for your problem i found that do_action( 'ava_before_footer' ); in footer.php and that is the right place for placing some code.

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