Support

Home Forums Event Espresso Premium Ticketing CSS – force HTTPS to css path (EE 3)

Ticketing CSS – force HTTPS to css path (EE 3)

Posted: June 2, 2014 at 10:08 am

Viewing 3 reply threads


jomo

June 2, 2014 at 10:08 am

I am having problems with the css not pulling in for tickets in firefox and chrome – due to the fact that it is not pulling the https url.

when i hard code the absolute path in the index.php file – it pulls in double instances of the path – and cannot resolve.

This is the base code i am editing:
if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . “templates/css/red.css”)) {


Josh

  • Support Staff

June 2, 2014 at 6:03 pm

Hi Jomo,

Can you let us know which file you are editing?


jomo

June 2, 2014 at 6:20 pm

index.php in the templates folder


Josh

  • Support Staff

June 2, 2014 at 11:15 pm

That’s strange because we add checks for ssl in the definitions, but you could try changing that initial block of code to this:

if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "tickets/templates/css/base.css")) {
	$base_dir = content_url('/uploads/espresso/tickets/templates/css/');//If the template files have been moved to the uploads folder
} else {
	$base_dir = ESPRESSO_TICKETING_FULL_URL.'templates/css/';//Default location
}
Viewing 3 reply threads

The support post ‘Ticketing CSS – force HTTPS to css path (EE 3)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso