Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-06-14 01:10:02

Ariaan
Member
From: Hengelo, The Netherlands
Registered: 2016-05-18
Posts: 41
Website

Custom CSS file not loading after sending Contact form

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

#2 2016-06-14 01:27:39

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom CSS file not loading after sending Contact form

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

#3 2016-06-14 01:38:42

Ariaan
Member
From: Hengelo, The Netherlands
Registered: 2016-05-18
Posts: 41
Website

Re: Custom CSS file not loading after sending Contact form

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

#4 2016-06-14 01:43:13

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Custom CSS file not loading after sending Contact form

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 smile


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2016-06-14 01:47:33

Ariaan
Member
From: Hengelo, The Netherlands
Registered: 2016-05-18
Posts: 41
Website

Re: Custom CSS file not loading after sending Contact form

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

#6 2016-06-14 03:01:03

Ariaan
Member
From: Hengelo, The Netherlands
Registered: 2016-05-18
Posts: 41
Website

Re: Custom CSS file not loading after sending Contact form

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

Board footer

Powered by FluxBB