Page 1 of 2

problem with contact form

Posted: Tue Mar 31, 2020 8:28 pm
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

Re: problem with contact form

Posted: Wed Apr 01, 2020 7:46 am
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.

Re: problem with contact form

Posted: Wed Apr 01, 2020 8:37 am
by stratego
I would like to insert it in place of ...How to edit anything (by example)



Thanks

Image

Re: problem with contact form

Posted: Wed Apr 01, 2020 9:03 am
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.

Re: problem with contact form

Posted: Wed Apr 01, 2020 10:15 am
by stratego
no so good

any idea ?


Image

Re: problem with contact form

Posted: Thu Apr 02, 2020 7:10 pm
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(); ?>

Re: problem with contact form

Posted: Fri Apr 03, 2020 5:43 am
by stratego
as you see, it's a little bit better but still shifted

Image

Re: problem with contact form

Posted: Fri Apr 03, 2020 10:49 am
by wiz
I see, I'll try to find a quick solution for you today. ;)

Re: problem with contact form

Posted: Fri Apr 10, 2020 12:39 pm
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.

Re: problem with contact form

Posted: Wed Apr 15, 2020 5:39 am
by stratego
Hi,

Thanks for your work.

I'll wait the new version of the form

:D