Page 1 of 2
contact form plugin - how to activate?
Posted: Mon Mar 31, 2025 7:08 pm
by Matipa
Hello there, I am new to wondercms and my feelings so far are ambiguous.
Currently I am trying to get the contact form either on a dedicated page or into the footer. The exhaustive documentation states:
"2. Put the code below in your custom theme.php to display the contact on the page specified in the config file
<?php echo contact_form(); ?>"
I have plastered that in every conceivable place in the theme.php without any luck - any advice on how to get it to work?
I have also tried to paste it directly into the page using html - no luck.
Using Wcms 3.50 and apache.
Thanks
Thomas
Re: contact form plugin - how to activate?
Posted: Mon Mar 31, 2025 7:17 pm
by wiz
Hi Matipa.
Did you install the contact plugin via Settings - Plugin?
If yes, you can specify which page to display it on in Settings - Security.
Re: contact form plugin - how to activate?
Posted: Fri May 16, 2025 8:09 pm
by WonderingHow
I have the same problem. I did install the contact form via the settings plugins. I chose which page, but it doesn't display. There is no helpful documentation. This plugin must be just for those who already code. I can't find how to make a custom theme either - is it necessary to always do this on github? I'm using Parallax theme.
Re: contact form plugin - how to activate?
Posted: Fri May 16, 2025 9:26 pm
by wiz
The only documentation necessary for this is here:
https://github.com/robiso/contact-form
Make sure to follow step 2:
2. Put the code below in your custom theme.php to display the contact on the page specified
<?php echo contact_form(); ?>
Save changes to theme.php.
Afterwards the form should display on the page that you specified in your settings.
Re: contact form plugin - how to activate?
Posted: Fri May 16, 2025 9:49 pm
by nox
Hey WonderingHow,
(Wiz already answered

)
---
As for the second question about themes, no, you don't need Github unless you want to share a theme so others can use it. Upload your theme folder inside
themes directory. But to activate your uploaded theme, you will need to go into (server)
data/database.js and manually type your theme name under "active-theme-name" (Sky, Parallax...)
and save changes.
Re: contact form plugin - how to activate?
Posted: Sat May 17, 2025 8:06 am
by WonderingHow
Thanks for that! My custom theme is now working.
But I still have the problem with where in the theme.php to paste <?php echo contact_form(); ?> ...
Inside the body? The head? At the beginning, before everything?
Re: contact form plugin - how to activate?
Posted: Sat May 17, 2025 8:50 am
by wiz
That’s awesome to hear.
In the parallax theme, where would you like it to be displayed? It will be easier to suggest where to put the contact form after we figure that out.
Re: contact form plugin - how to activate?
Posted: Sat May 17, 2025 9:08 am
by WonderingHow
I have created a page called 'Contact' and specified that is where it should display, in the Settings > Security, so it would be nice if it showed up there, but I'll settle for anywhere at all! I have added the Captcha details there too.
Re: contact form plugin - how to activate?
Posted: Sat May 17, 2025 9:31 am
by wiz
Great, you're almost there.
Open your theme.php
and find
Code: Select all
<div class="container-fluid CTA">
<div class="text-center padding40">
<?=$Wcms->block('subside')?>
</div>
</div>
change it to
Code: Select all
<div class="container-fluid CTA">
<div class="text-center padding40">
<?=$Wcms->block('subside')?>
<?php echo contact_form(); ?>
</div>
</div>
This should display the contact below your main content, on the contact page you created.
Re: contact form plugin - how to activate?
Posted: Sat May 17, 2025 10:45 am
by WonderingHow
Thanks I did that previously and it didn't work. I have done it again and it didn't work again. I have now also tried changing Sky theme.php directly in this way (see below), and activated Sky theme, and it didn't work. I've never seen the Contact Form display.
Code: Select all
<section class="wrapper style2">
<div class="inner">
<!-- Static editable block, same on each page -->
<?= $Wcms->block('subside') ?>
<?php echo contact_form(); ?>
</div>
</section>