contact form plugin - how to activate?
contact form plugin - how to activate?
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
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?
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.
Did you install the contact plugin via Settings - Plugin?
If yes, you can specify which page to display it on in Settings - Security.
-
- Posts: 8
- Joined: Fri May 16, 2025 7:47 pm
Re: contact form plugin - how to activate?
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?
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.
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?
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.
(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...)
Code: Select all
"theme" : "active-theme-name",
-
- Posts: 8
- Joined: Fri May 16, 2025 7:47 pm
Re: contact form plugin - how to activate?
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?
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?
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.
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.
-
- Posts: 8
- Joined: Fri May 16, 2025 7:47 pm
Re: contact form plugin - how to activate?
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?
Great, you're almost there.
Open your theme.php
and find
change it to
This should display the contact below your main content, on the contact page you created.
Open your theme.php
and find
Code: Select all
<div class="container-fluid CTA">
<div class="text-center padding40">
<?=$Wcms->block('subside')?>
</div>
</div>
Code: Select all
<div class="container-fluid CTA">
<div class="text-center padding40">
<?=$Wcms->block('subside')?>
<?php echo contact_form(); ?>
</div>
</div>
-
- Posts: 8
- Joined: Fri May 16, 2025 7:47 pm
Re: contact form plugin - how to activate?
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>