Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
I have run into an issue that the custom css file fails to load in the success page after the contact form has been submitted. I'm not sure if this problem was always there or if it's new. I've created a demo site with a clean install of Backlight in a demo subdomain and it happens there as well. I"m not sure what I can have done wrong.
Contact form on my main site: http://ariaanblok.nl/contact/
… and on the demo site: http://ariaanblok.nl/demo/contact/
Has anyone else encountered this problem?
Offline
A custom css file is being called on that page, it's just that the url is wrong:
<link rel="stylesheet" href="http://ariaanblok.nl/demo/contact/backlight/custom/css/aangepast.css" />
it should be:
<link rel="stylesheet" href="http://ariaanblok.nl/demo/backlight/custom/css/aangepast.css" />
but "contact/" is being inserted after "demo/"
This doesn't happen on my site. I wonder if Page URL in Settings has anything to do with it. Or perhaps the page link in the menu. What is the "Link to" setting in the menu for your contact page?
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod,
I have in the menu settings: Link to: page > Contact
And I removed the menu part from the custom PHP file, so that could not be influencing things.
On my main site, I'm using hard link for the menu mostly, also in the custom php, so two different things and yet the same result.
Offline
Probably something simple, but I can't see it. All I can tell you is that custom css is loading on my "success" page.
This might have something to do with .htaccess and the way urls are written. So Ben or Matt will have to take a look at it as it's pretty much Greek to me
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Okay. I can try placing the unedited .htaccess files from the Backlight install files back. Perhaps that has something to do with it.
Hmm, doesn't seem to make a difference.
Last edited by Ariaan (2016-06-14 01:56:11)
Offline
Hi Rod, your first guess seems to be right! I have changed the way pages are called from page/ to page.php in Backlight Settings.
This worked immediately for the test site, where I have the menu items set up as Link to: page > Contact, Link to: page > Info, etc.
On my main site I'm using URLs and I had to change http://ariaanblok.nl/contact/ to http://ariaanblok.nl/contact.php. Now it works there too. Perhaps the hard URLs aren't necessary anymore, I'll have to test that, but anyway, the problem is solved.
So thanks again for your help!
Offline