Jump to content

Truly HTTPS out of the box


Recommended Posts

When installing ProcessWire out of the box (Softaculous), there is one minor mistake in making it truly https friendly.

site/templates/_main.php - the http: has to be removed in order to load the google font accordingly to the site setup https/http.

	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $title; ?></title>
	<meta name="description" content="<?php echo $page->summary; ?>" />
	<link href='http://fonts.googleapis.com/css?family=Lusitana:400,700|Quattrocento:400,700' rel='stylesheet' type='text/css' />
	<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/main.css" />

Great product! Continue the brilliance.

  • Like 3
Link to comment
Share on other sites

Not sure what you mean:

About processwire site setup see the api



Links to fonts from google goes like this:
<link href='http://fonts.googleapis.com/css?family= . . . . . . ' rel='stylesheet' type='text/css'>

Links to your font-awesome.min.css goes like this:
<link href='/site/templates/styles/font-awesome/css/font-awesome.min.css' rel='stylesheet' type='text/css' />

Links to your internal css and js go like this:
<link href="/site/templates/webfonts/your_webfont_styles.css" rel="stylesheet">
<link href="/site/templates/your_style.css" rel="stylesheet">
<script src="/site/templates/webfonts/your_webfont_script.js"></script>

Link to comment
Share on other sites

Pwired, instead of http:// the Google fonts should be loaded just with //, then it would use http/https according to the current page.

That is of course quick change and pretty much site specific setting.

And welcome to the forums vegardw!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...