Google Fonts Question

Permalink Browser Info Environment
Great theme. Just getting the site up, and I had a question. If I want to add a font option for the headlines, what do I need to do? I added another Google font family to:
.../public_html/packages/ds_milo/themes/milo/fonts/defaults.less

(copied and pasted from Google to make sure format, spelling were correct...)

I cleared the cache a couple of times, logged out and back in again, but the other family doesn't show up in the Design options for the H1, H2, etc. So I am missing something.

I presume that it's better to add the option via c5's custom Design option, as those changes should be preserved in the event of an update to the theme, as opposed to changing the less/css files directly.

Although, as a test, I did also try changing the fonts in:
.../public_html/packages/ds_milo/themes/milo/presets/defaults.less

but that didn't effect any changes after clearing cache, viewing in another browser, etc.

So I am missing something there too. I looked on the forums, but couldn't find a general solution.

Any help you could provide would be most appreciated!

Thanks.

Tim

Type: Discussion
Status: In Progress
DBKG
View Replies:
datasouth replied on at Permalink Reply
datasouth
Hi Tim,

Regarding adding fonts, please see the link below:
https://www.concrete5.org/marketplace/themes/long-story-short1/suppo...



Regards.
DBKG replied on at Permalink Reply 1 Attachment
DBKG
Thanks, but that doesn't work for me. I tested it by copying and pasting that (changing the h3 to an h1 tag and using Oswald as the test case), but Oswald gets overridden and still loads as Roboto. Cleared the cache (twice) and checked it another browser.

I've attached the screenshot when inspecting the element in Chrome.

Thanks.

Tim
datasouth replied on at Permalink Reply 2 Attachments
datasouth
Hi Tim,

I have uploaded the new version of the theme along with the fixes for custom Google Fonts. Kindly update the theme and clear your browser's cache.

You can update the font via the following:

If you do an update option:
=> Create a custom page attribute in the dashboard
name: Milo Header Extra Contents
handle: milo_header_extra_contents
type: textarea

=> Go the home page and add the custom page attribute. Click "Milo Extra Header Contents" This is where you can add Google Fonts and CSS overrides. Please see the attached images.

If you do a fresh installation, you don't need to add a page attribute in the dashboard.

Hope this helps.


Regards.
DBKG replied on at Permalink Reply
DBKG
Awesome. Thanks.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.3.2
Version Installed - 8.3.2
Database Version - 20180122213656

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), Background Image Slideshow (1.0.7), Customize Editing Interface (1.0.1), Milo Theme (0.9.1), Spacer (0.9.4), Styled Maps (1.2.3)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
5.6.34

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SourceGuardian, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, 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 - 512M
post_max_size - 256M
sql.safe_mode - Off
upload_max_filesize - 256M
ldap.max_links - Unlimited
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 - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5
zend_optimizerplus.max_accelerated_files - 2000
zend_optimizerplus.max_file_size - 0
zend_optimizerplus.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0) Gecko/20100101 Firefox/58.0

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.