Questions about Payment Form extension

Remove/Hide Forms Title

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 7 months ago #10438 by MyWorld
Remove/Hide Forms Title was created by MyWorld
I used the plugin to insert the form in an article. My article title is showing so is the form's title. How can I remove the form's title?

Thank you!

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #10443 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove/Hide Forms Title
Hi

Please open the file components/com_pmform/views/form/tmpl/default.php, looks at the code at line 6 and remove it:
Code:
<div class="componentheading"><?php echo $headerText; ?></div>


Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 7 months ago #10525 by MyWorld
Replied by MyWorld on topic Re: Remove/Hide Forms Title
templates/.../html/com_pmform/form/default.php

I'm using the template override, as per above, for my form that is inserted in a joomla article page. I changed the class for the heading to: <div class="pf-header"><?php echo $headerText; ?></div>, then in my css I add this: .pf-header {display:none;} but it seems that the override is not working as the heading is still showing.

Thanks!!

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #10535 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Remove/Hide Forms Title
When I checked the template override on your code, I found out an error with it and fixed it ! It works well now !

Tuan

Please Log in or Create an account to join the conversation.

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 years 7 months ago #10581 by MyWorld
Replied by MyWorld on topic Re: Remove/Hide Forms Title
Hi Tuan,

Thanks for fixing this. You said:

You are using Payment Form plugin (embed the form into an article) and template override doesn't work. So I had to modify the layout directly in the component (components/com_pmform/views/form/tmpl/default.php).


Is there anyway you can make a change to the component so that we can make this fix ourselves in the future.

Thank you!!

Please Log in or Create an account to join the conversation.

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 9 months ago #16017 by MyWorld
Replied by MyWorld on topic Re: Remove/Hide Forms Title
I just purchase the Payment Form AGAIN and is having this same problem again.

Does this mean that I have to do this every time I upgrade?

Thanks!!

Please Log in or Create an account to join the conversation.

  • MyWorld
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
12 years 9 months ago #16030 by MyWorld
Replied by MyWorld on topic Re: Remove/Hide Forms Title
Nevermind - I used CSS to hide the header title.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc