Appnitro Software Forums » MachForm

MachForm on Wordpress Pages, Double Title

(8 posts)

  1. LaMaison
    Member

    I think MachForm is really nice, I have never created forms this nice this quickly.

    I'm new to Wordpress and MachForm, and was wonder the best way to work with WordPress Pages and Machform. If I embed MachForm code, in a Wordpress Page template, I end up with two page titles, on from Wordpress and one from MachForm.

    What's the best way to fix this?

    I have tried removing the MachForm Title, and while it works, it makes it hard to identify the forms. I could modify the Wordpress Page template, but I don't want remove the Title there either.

    Posted 3 years ago #
  2. The best way to do this would be keeping your form title intact, so that you could identify the form easily.

    Now to hide the title from your form, you can edit the CSS code.

    Search for this code:

    #main_body .form_description[class]
    {
    	display:block;
    }

    adjust the display property to become like this:

    #main_body .form_description[class]
    {
    	display:none;
    }

    That would remove the title from your form.

    Posted 3 years ago #
  3. LaMaison
    Member

    I changed this in view.css

    #main_body .form_description[class]
    {
    display:none;
    }

    But the title still displays

    Posted 3 years ago #
  4. Hmm.. that's odd. What browser do you use? version?
    Try to delete your browser cache and then refresh your form.

    Posted 3 years ago #
  5. LaMaison
    Member

    I have tried both FireFox 3 and Safari on Mac OS X

    Posted 3 years ago #
  6. LaMaison
    Member

    I also tested it on Firefox 2 (on windows xp) and on one form it hide the form title, but it also hide the form description which I would like to continue to display. The weird thing is that on the rest of the forms the title and description we all visible.

    And on the same machine I tested IE 6, all titles and descriptions we visible

    Can you just tell me where I can common out the Form Title in the PHP.

    Thanks

    Posted 3 years ago #
  7. Hmm... I'm using Yuniar's suggested fix and it seems to be working fine for me. I've tested with IE7, Firefox 3, Opera 9.5 and Safari 3.x on Windows and Firefox 3 & Opera 9.5 on Linux. I don't have access to a Mac at the moment so I can't test with that.

    Feel free to take a look @ http://www.jasetaro.com/comments and let me know what you see.

    Posted 3 years ago #
  8. LaMaison - can you paste me the link to your form?

    Anyway, if you need to do it from PHP, you can edit includes/view-functions.php.
    Around line 1805 - 1808, you'll find this:

    <div class="form_description">
    	<h2>{$form->name}</h2>
    	{$form->description}
    
    </div>

    remove the second line, to be like this:

    <div class="form_description">
    	{$form->description}
    
    </div>

    that would remove the title, from all your forms.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.