Change headings to another google font.

Permalink Browser Info Environment
Hi there.

Firstly, thanks for publishing this great theme.

I would like to change heading fonts to an alternate google font but I'm struggling and so was hoping you could provide details on the ideal way to do it, please.
Namely, how best to import the family and then how to modify the styles. Any modifications I make to Theme > Customise > Advanced > Custom CSS don't seem to make any changes to my site.

Sorry if this is a really basic question, but I've been searching for quite a while now and tried a bunch of methods (the ones listed in the motif support and elsewhere), but nothing is giving me any joy...

Thanks in advance.

Type: Ticket
Status: Resolved
craines
View Replies:
Xanweb replied on at Permalink Reply 2 Attachments
Xanweb
Hi craines,

Thanks for the purchase!

You can get the wanted result following the next steps:

1 - Navigate to Dashboard > System & Settings > Tracking Codes
2 - Put your google font link tags inside the textarea "Header Tracking Codes" ( Screenshot 1 )
3 - Then you can add your custom CSS via Theme > Customize > Advanced > Custom CSS
If you want to apply the new font for all the headings tags you can add this css code ( Screenshot 2 ):

div.ccm-page h1, div.ccm-page h2, div.ccm-page h3, div.ccm-page h4, div.ccm-page h5, div.ccm-page h6{
    font-family: 'Ceviche One', cursive;
}

Hopefully these steps will help you.

Best Regards,
ConcreteCMS DE Support Team
craines replied on at Permalink Reply
craines
Thanks for your help with this Xanweb.
Unfortunately, it's not working for me.

When I get to step 2 and press save in the tracking codes page I get a 403 error.
If I enter just plain HTML or text it works fine and the tracking codes page is saved.
If I enter either @import, <link> or <script> I get the 403. This occurs even if it's an empty script tag, eg. <script></script>

What I would like to put is either of the following:

@import url(https://fonts.googleapis.com/css?family=Just+Another+Hand&display=swap);
<link href="https://fonts.googleapis.com/css2?family=Just+Another+Hand&display=swap" rel="stylesheet">


I've contacted the web host and they have suggested that it might be permissions or a setting on the files. I've looked through the files on the server; folders are 755 with files 644, which seems correct.

I also get a 403 error with @import in Design > Customize > Custom CSS.

Any ideas where the issue might be?
Thanks again for your help...
Xanweb replied on at Permalink Reply
Xanweb
Hi craines,

Under Dashboard > System & Settings > Tracking Codes
You have to put only the <link> tags provided by google fonts, exactly as shown in attached screenshot1 ( In the top right of the reply ).
For you it will be the the following code:

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Just+Another+Hand&display=swap" rel="stylesheet">

And for Design > Customize > Custom CSS Section
you have to put only this CSS code:

div.ccm-page h1, div.ccm-page h2, div.ccm-page h3, div.ccm-page h4, div.ccm-page h5, div.ccm-page h6{
font-family: 'Just Another Hand', cursive;
}


Best Regards,
ConcreteCMS DE Support Team

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.6
Version Installed - 8.5.6
Database Version - 20210622145600

# Database Information
Version: 10.3.31-MariaDB-cll-lve
SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Motif (1.0.0)

# 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
LiteSpeed

# Server API
litespeed

# PHP Version
7.4.24

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, json, ldap, libxml, litespeed, mbstring, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, timezonedb, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 90
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - -1
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
upload_max_filesize - 20M
ldap.max_links - Unlimited
mbstring.regex_retry_limit - 1000000
mbstring.regex_stack_limit - 100000
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
unserialize_max_depth - 4096

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 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.