This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

MachForm on Wordpress Pages, Double Title


  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 15 years ago #
  2. yuniar

    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.


    MachForm Founder

    Posted 15 years ago #
  3. LaMaison
    Member

    I changed this in view.css

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

    But the title still displays

    Posted 15 years ago #
  4. yuniar

    Hmm.. that's odd. What browser do you use? version?
    Try to delete your browser cache and then refresh your form.


    MachForm Founder

    Posted 15 years ago #
  5. LaMaison
    Member

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

    Posted 15 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 15 years ago #
  7. jasetaro
    Member

    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 15 years ago #
  8. yuniar

    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.


    MachForm Founder

    Posted 15 years ago #
  9. Giorgio
    Member

    Hi Yuniar

    About the way you described to hide the title in this post, it's not clear to me if the CSS code can be changed for a single form in the backend or if you meant a change of the view.css file that affects all forms. I would need to hide the form's title only for some forms.
    If it is not possible I would suggest a new flag in the form properties to hide/unhide the form's title.

    Posted 10 years ago #
  10. yuniar

    Giorgio -- this is very old thread and no longer relevant. If you are using version 3, you can simply remove the title of your form and use the "tag" feature to easily identify your form.


    MachForm Founder

    Posted 10 years ago #

RSS feed for this topic

Reply