-
AuthorPosts
-
April 7, 2017 at 11:24 pm #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.
April 7, 2017 at 11:55 pm #774255If 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.
April 8, 2017 at 7:58 pm #774661how would the Ava_before_footer work?
April 8, 2017 at 8:21 pm #774676Hi!
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!
BasilisApril 8, 2017 at 8:24 pm #774677I 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??
April 8, 2017 at 8:26 pm #774681Can 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 possiblebut
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, 8 months ago by Guenni007.
April 8, 2017 at 8:34 pm #774685The 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.
April 8, 2017 at 8:46 pm #774688Sorry lucille – i’m Participant as you – so i do not see Private Content on your postings
April 8, 2017 at 8:49 pm #774691try again
Click here to Inquire how to adopt this child
- This reply was modified 7 years, 8 months ago by Lucille.
April 8, 2017 at 8:52 pm #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>
April 8, 2017 at 9:02 pm #774695haha – 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, 8 months ago by Guenni007.
April 8, 2017 at 9:07 pm #774696aha – 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 plugini 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.
April 8, 2017 at 9:09 pm #774698If 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.
April 8, 2017 at 9:11 pm #774700you see the code to register that widget area – test it !
April 8, 2017 at 9:20 pm #774704I will, thank you!!
April 8, 2017 at 11:58 pm #774743Hi,
@Lucille let us know if this solves it for you.
@Guenni007 thanks for your great help :)Best regards,
MikeApril 12, 2017 at 2:06 am #776396OK, 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?
April 12, 2017 at 7:16 am #776497Hi,
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 TorvikApril 14, 2017 at 10:21 am #777756please 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. -
AuthorPosts
- You must be logged in to reply to this topic.