contact form plugin - how to activate?

Matipa
Posts: 1
Joined: Mon Mar 31, 2025 7:00 pm

contact form plugin - how to activate?

Post 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
User avatar
wiz
Posts: 814
Joined: Sat Oct 30, 2010 12:23 am

Re: contact form plugin - how to activate?

Post 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.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post 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.
User avatar
wiz
Posts: 814
Joined: Sat Oct 30, 2010 12:23 am

Re: contact form plugin - how to activate?

Post 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.
User avatar
nox
Posts: 84
Joined: Sat May 23, 2020 9:02 pm

Re: contact form plugin - how to activate?

Post by nox »

Hey WonderingHow,

(Wiz already answered :D )

---

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",
and save changes.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post 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?
User avatar
wiz
Posts: 814
Joined: Sat Oct 30, 2010 12:23 am

Re: contact form plugin - how to activate?

Post 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.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post 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.
User avatar
wiz
Posts: 814
Joined: Sat Oct 30, 2010 12:23 am

Re: contact form plugin - how to activate?

Post 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.
WonderingHow
Posts: 8
Joined: Fri May 16, 2025 7:47 pm

Re: contact form plugin - how to activate?

Post 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>
Post Reply