Typeface

Permalink Browser Info Environment
Hi folks! Great theme - enjoying working with it! Just wondering if there is an easy way to change the fancy header font - the script style typeface - looks like maybe a Google font? I'd like to see if there is something which works a wee bit better for me. Thanks!!

1 Attachment

Type: Pre-Sale
Status: In Progress
Johnny4x
View Replies:
VidalThemes replied on at Permalink Reply
VidalThemes
Hi There, thanks a lot for your purchase.

Sadly there is not an easy way to change the font, Concrete5 has a small selection of baked in fonts for use in the editor, and they are a kind of closed garden, which is why theme developers opt for using Google fonts and hard coding them in.

They can be changed, its just a little more effort than most people would like, but to change the fonts please follow these steps:

Before editing any of your files please take a backup of the files I direct you to, so you can restore them should anything go wrong.

1/ Enter your sites files via FTP or your hosting accounts file manager.

2/ In your concrete5 install go to:

packages ▸ minima ▸ themes ▸ minima ▸ header.php

on line 23 you should see this piece of code:

<link href='http://fonts.googleapis.com/css?family=Petit+Formal+Script' rel='stylesheet' type='text/css'>


this is the google font for the petit formal script (the fancy hand writing type affair).

3/ Replace that line of code with the reference to the Google font you wish to use, and save it.

4/ While still in your sites files go to:

packages ▸ minima ▸ themes ▸ minima ▸ customise.css

Open up customise.css and look for any reference to the following:

'Petit Formal Script'

Searching for this will be much quicker if you have a text/code editor with a find and replace function.

5/ Wherever there is a reference to 'Petit Formal Script' replace that with the name of your new font as given to you by Google fonts, for example 'Open Sans' etc, then save the file.

Sorry its not a bit easier, but if you don't mind a bit of diving into your sites files, it should work out fine. any questions or issues please dont hesitate to get in touch.

Regards

David
Johnny4x replied on at Permalink Reply
Johnny4x
David, many thanks for the speedy and comprehensive reply. At least sounds do-able!

Best

John
VidalThemes replied on at Permalink Reply
VidalThemes
No worries John,

Please let me know how you get on.

Regards

David
Johnny4x replied on at Permalink Reply 1 Attachment
Johnny4x
argg.. wouldn't be me if something didn't work. Sorry David, I have followed instructions but not working as expected. The Typeface has changed - so something is working.

The uploaded files I have checked, but when checking using Chrome Dev tools, the typeface is still reading 'Petit Formal Script'. I have cleared cache in Chrome and in C5 dashboard and using ftp (/public_html/files/cache)... but my customise.css (or /public_html/packages/minima/themes/minima/inc/header.php) doesn't seem to be getting picked up :(

I have attached the two new files for your info.. and the web address ishttp://www.johnrharrison.uk - maybe you could have a look when you get a mo.

Thanks again

John
VidalThemes replied on at Permalink Reply
VidalThemes
Hi John,

Have you altered anything using the customise options yet, prior to changing your fonts?

If you have they, do have a rather nasty habit of very aggressively caching, the only thing that seems to kick it out, is reseting the theme customisations.

In the customise settings right down the bottom next to the save button, you should have a reset button, hitting that should then allow the new fonts to be rendered.

The only other thing I can think of is maybe your customise.css didn't actually save, when you open up customise.css do you still see "Petit formal script" in your font declarations or are you seeing your new font name that you changed it to? if you are seeing your new font name then its almost definitely the cache playing up.

Regards

David
Johnny4x replied on at Permalink Reply
Johnny4x
David, I had played with the customise options - looking for how to change typeface ha!...

Resetting has solved the issue! - thanks again! Now please go have a coffee!

John
VidalThemes replied on at Permalink Reply
VidalThemes
Glad its sorted John.

I dont think I could drink more coffee if I tried ;)

Regards

David

concrete5 Environment Information

# concrete5 Version
5.6.3.3

# concrete5 Packages
Minima (1.6).

# concrete5 Overrides
languages/ja_JP, languages/it_IT, languages/fi_FI, languages/sl_SI, languages/tr_TR, languages/cs_CZ, languages/nb_NO, languages/el_GR, languages/nl_NL, languages/es_MX, languages/es_PE, languages/es_ES, languages/pt_PT, languages/vi_VN, languages/sv_SE, languages/ro_RO, languages/sk_SK, languages/ru_RU, languages/zh_TW, languages/ar, languages/es_AR, languages/fr_FR, languages/da_DK, languages/de_DE, languages/fa_IR

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache/2.4.9 (Unix)

# Server API
cgi-fcgi

# PHP Version
5.3.28

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mssql, mysql, mysqli, mysqlnd, OAuth, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 64M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 64M
ldap.max_links - Unlimited
mssql.max_links - Unlimited
mssql.max_persistent - Unlimited
mssql.max_procs - Unlimited
mssql.textlimit - Server default
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.