Page 1 of 2
Contact3 not in static post
Posted: Sat Feb 05, 2022 10:08 am
by Cryss1
Hello!
I've tried for several hours yesterday to make my contact3 form to show up in a static post when accessing the main site (page is said to not work, is there a workaround for this?), but it doesn't work.
If I go to my main site it shows the first post, but without the form. I have to click the title of that post that is shown in the menu.
Can somebody point me into the right direction? Thank you.
What I want to achieve is to use Bludit as a single page contact sheet.
Cryss
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 11:47 am
by Edi
Can you please give the address of the website?
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 12:16 pm
by Cryss1
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 7:11 pm
by novafacile
Currently Contact3 can only added to static pages. (I think I should change this...).
In Bludit settings, you can set the page with contact form as homepage.
Settings -> Advanced -> Homepage
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 7:42 pm
by Edi
I tried it, and it does not work. I think because the homepage has no slug.
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 7:49 pm
by Cryss1
In Bludit settings, you can set the page with contact form as homepage.
Settings -> Advanced -> Homepage
This doesn't work. It is already set to the (static) contact page.
Is there any workaround like putting line yx into file xy and I'm good?
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 8:16 pm
by novafacile
Edi wrote: Sat Feb 05, 2022 7:42 pm
I tried it, and it does not work. I think because the homepage has no slug.
Oh yes, that's the problem... let me think about to find a solution.
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 8:31 pm
by Edi
As a temporary fix till the script of the plugin is fixed you can use in the file
plugin.php in the directory
/bl-plugins/contact3 the following (line 497):
Code: Select all
// Load contact form
public function pageEnd(){
if(!$this->webhook($this->webhookUrl()) && $WHERE_AM_I=='home'){
return;
}
instead of
Code: Select all
// Load contact form
public function pageEnd(){
if(!$this->webhook($this->webhookUrl())){
return;
}
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 8:44 pm
by Cryss1
Thank you so much for the help! It works.
Re: Contact3 not in static post
Posted: Sat Feb 05, 2022 9:11 pm
by novafacile
Edi wrote: Sat Feb 05, 2022 8:31 pm
As a temporary fix till the script of the plugin is fixed you can use in the file
plugin.php in the directory
/bl-plugins/contact3 the following (line 497):
Code: Select all
// Load contact form
public function pageEnd(){
if(!$this->webhook($this->webhookUrl()) && $WHERE_AM_I=='home'){
return;
}
instead of
Code: Select all
// Load contact form
public function pageEnd(){
if(!$this->webhook($this->webhookUrl())){
return;
}
Thanks! I will add this possibility to the plugin config.