problem with contact form

Welcome to the WonderCMS community. Anything goes, except for support requests.
stratego
Posts: 8
Joined: Tue Mar 31, 2020 8:21 pm

problem with contact form

Post by stratego »

Hello everybody,

I'm checking wondercms and Idon't really see where (in theme.php) i've to insert the code for the contact form

Thx for your answer :D
User avatar
wiz
Posts: 754
Joined: Sat Oct 30, 2010 12:23 am

Re: problem with contact form

Post by wiz »

Hi stratego, welcome to the community :)

Paste the code anywhere you want to display it. You can also send a screenshot where you want to place it in your theme and we'll be able to help you out.
stratego
Posts: 8
Joined: Tue Mar 31, 2020 8:21 pm

Re: problem with contact form

Post by stratego »

I would like to insert it in place of ...How to edit anything (by example)



Thanks

Image
User avatar
wiz
Posts: 754
Joined: Sat Oct 30, 2010 12:23 am

Re: problem with contact form

Post by wiz »

I see you're using the green theme.

I don't believe you can put it between the two texts you're specifying, but you can insert the PHP code here:

Code: Select all

    	<div class="container">
    		<div class="col-xs-12 col-sm-8">
    			<div class="whiteBackground grayFont padding20 rounded5">
                    		<?= $Wcms->page('content') ?>
    
    				<?php echo contact_form(); ?>
    
    			</div>
    		</div>
    		<div class="col-xs-12 col-sm-4">
    			<div class="visible-xs spacer20"></div>
    			<div class="greenBackground padding20 rounded5">
                    		<?= $Wcms->block('subside') ?>
    
    			</div>
    		</div>
    	</div>

Let me know if the above works for you. The above should display the contact form under the "How to install" text.
Please note I've added the

Code: Select all

<?php echo contact_form(); ?>
in the code above.

If that doesn't work, you can try this:

Code: Select all

    	<div class="container">
    		<div class="col-xs-12 col-sm-8">
    			<div class="whiteBackground grayFont padding20 rounded5">
                    		<?= $Wcms->page('content') ?>
    			</div>
    		</div>
    		<div class="col-xs-12 col-sm-4">
    			<div class="visible-xs spacer20"></div>
    			<div class="greenBackground padding20 rounded5">
                    		<?= $Wcms->block('subside') ?>
    
    			</div>
    		</div>
    	</div>
    	
    	<?php echo contact_form(); ?>
The above example will display the form under all of the content that is displayed on the left and right.
stratego
Posts: 8
Joined: Tue Mar 31, 2020 8:21 pm

Re: problem with contact form

Post by stratego »

no so good

any idea ?


Image
User avatar
wiz
Posts: 754
Joined: Sat Oct 30, 2010 12:23 am

Re: problem with contact form

Post by wiz »

Can you try the last piece of the code I've pasted?
This should put the contact form under the content and should be looking ok.

Code: Select all

   	<div class="container">
    		<div class="col-xs-12 col-sm-8">
    			<div class="whiteBackground grayFont padding20 rounded5">
                    		<?= $Wcms->page('content') ?>
    			</div>
    		</div>
    		<div class="col-xs-12 col-sm-4">
    			<div class="visible-xs spacer20"></div>
    			<div class="greenBackground padding20 rounded5">
                    		<?= $Wcms->block('subside') ?>
    
    			</div>
    		</div>
    	</div>
    	
    	<?php echo contact_form(); ?>
stratego
Posts: 8
Joined: Tue Mar 31, 2020 8:21 pm

Re: problem with contact form

Post by stratego »

as you see, it's a little bit better but still shifted

Image
User avatar
wiz
Posts: 754
Joined: Sat Oct 30, 2010 12:23 am

Re: problem with contact form

Post by wiz »

I see, I'll try to find a quick solution for you today. ;)
User avatar
wiz
Posts: 754
Joined: Sat Oct 30, 2010 12:23 am

Re: problem with contact form

Post by wiz »

I have managed to play around with this, but it seems the contact form will have to be updated.
I will post work-arounds soon (it will require changing the contact-form plugin) a little bit until we manage to push out an universal update.
stratego
Posts: 8
Joined: Tue Mar 31, 2020 8:21 pm

Re: problem with contact form

Post by stratego »

Hi,

Thanks for your work.

I'll wait the new version of the form

:D
Post Reply