Jump to content

Recommended Posts

Posted

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.

<head>
	<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" />
</head> 

Great product! Continue the brilliance.

  • Like 3
Posted

Not sure what you mean:

About processwire site setup see the api

https://processwire.com/api/variables/config/

Examples:

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>

Posted

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
Posted

I just wanted to inform, due to not want to edit everytime there will be an update (not that I will use the default theme forever, but yes, small issue). Could probably be solved better, just fast fix.

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...