Google Fonts

Permalink Browser Info Environment
Can only see one Google font? Should there be a few options? How do I go about installing more? Thank you

Type: Pre-Sale
Status: In Progress
mojoburns
View Replies:
datasouth replied on at Permalink Reply
datasouth
Hello,

You can add new google fonts by navigating to packages -> ds_empire57 -> themes -> empire -> elements and open head_element.php with your preferred editor. Add the google font code here and you should be able to use it via CSS.

I hope this made sense. Please let me know if you need help with anything else.

Regards.
mojoburns replied on at Permalink Reply 1 Attachment
mojoburns
Hi Added the google fonts and now no google fonts are showing. See below code. Is there something else we are meant to be doing? Thanks!

<?php defined('C5_EXECUTE') or die(_("Access Denied."));?>
<!DOCTYPE html>
<html lang="<?php echo Localization::activeLanguage()?>">

<head>
<?php Loader::element('header_required'); ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Bootstrap core CSS -->
<link href='http://fonts.googleapis.com/css?family=Droid+Serif' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Rancho|Raleway|Comfortaa' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo $view->getThemePath();?>/css/bootstrap.min.css" rel="stylesheet">
<?php echo $html->css($view->getStylesheet('main.less'));?>
</head>
datasouth replied on at Permalink Reply
datasouth
Hi,

I'm not sure why it's not showing. Can you try manually forcing C5 to use the fonts by editing the default preset less file?
It can be located here: packages/themes/empire/css/presesets/default.less
You should be able to see the heading attributes there.

Please let me know if you manage to get it working, if not, I'll try to figure out the issue on my end.

Best regards.
mojoburns replied on at Permalink Reply
mojoburns
Tried changing and didn't make any difference. Bit worried about continuing to change these files as if there is an update will they not be overwritten? Also still not others showing in drop down including the original google fonts you had in there. Thanks for help with this!

below changed less file:

// HEADER
@header-background-color: #000f38;
@header-linktext-color: #fff;
@header-topmost-background-color: #000;
@header-topmost-text-type-color: #fff;
@header-topmost-text-type-font-family: "Raleway",sans-serif;
@header-topmost-text-type-font-size: 14px;
@header-topmost-text-type-font-style: normal;
@header-topmost-text-type-font-weight: 400;

// NAVIGATION
@navigation-background-color: #808080;
@navtext-type-color: #fff;
@navtext-type-font-family: "Raleway",Helvetica,Arial,sans-serif;
@navtext-type-font-size: 13px;
@navtext-type-font-style: normal;
@navtext-type-font-weight: 400;
@activenav-background-color: rgba(0, 15, 56, 1);
@activenav-text-color: #fff;
@hovernav-background-color: rgba(0, 15, 56, 1);
@hovernav-text-color: #fff;

// NAVIGATION SUBMENU
@submenu-text-color: #fff;
@submenu-background-color: rgba(0, 15, 56, 1);
@submenu-border-color: #fff;
@activesubmenu-background-color: rgb(99, 106, 123);
@activesubmenu-text-color: #fff;
@hoversubmenu-background-color: rgb(99, 106, 123);
@hoversubmenu-text-color: #fff;

// HEADINGS
/* h1 */
@h1-type-color: #16254c;
@h1-type-font-family: 'Rancho', sans-serif;
@h1-type-font-size: 36px;
@h1-type-font-style: normal;
@h1-type-font-weight: 500;
/* h2 */
@h2-type-color: #16254c;
@h2-type-font-family: 'Raleway', sans-serif;
@h2-type-font-size: 30px;
@h2-type-font-style: normal;
@h2-type-font-weight: 500;
/* h3 */
@h3-type-color: #16254c;
@h3-type-font-family: 'Raleway', sans-serif;
@h3-type-font-size: 24px;
@h3-type-font-style: normal;
@h3-type-font-weight: 500;
/* h4 */
@h4-type-color: #16254c;
@h4-type-font-family: 'Raleway', sans-serif;
@h4-type-font-size: 18px;
@h4-type-font-style: normal;
@h4-type-font-weight: 500;
/* h5 */
@h5-type-color: #16254c;
@h5-type-font-family: 'Raleway', sans-serif;
@h5-type-font-size: 14px;
@h5-type-font-style: normal;
@h5-type-font-weight: 500;
/* h6 */
@h6-type-color: #16254c;
@h6-type-font-family: 'Raleway', sans-serif;
@h6-type-font-size: 12px;
@h6-type-font-style: normal;
@h6-type-font-weight: 500;
/* p */
@p-type-color: #808080;
@p-type-font-family: Raleway;
@p-type-font-size: 14px;
@p-type-font-style: normal;
@p-type-font-weight: 400;
// TREE MENU
@tree-menu-text-color: #808080;
@tree-menu-background-color: #fff;
@tree-menu-border-color: #ddd;
@tree-menu-hover-text-color: #fff;
@tree-menu-hover-background-color: rgba(0, 15, 56, 1);
@tree-menu-hover-border-color: #ddd;
@tree-menu-collapse-icon-color: #ddd;
@tree-menu-collapse-background-color: #efefef;
@tree-menu-collapse-border-color: #ddd;

// SOCIAL LINKS
@social-link-border-color: #808080;
@social-link-icon-color: #808080;
@hover-social-link-border-color: #26314d;
@hover-social-link-icon-color: #26314d;

// SHARE THIS PAGE
@share-this-page-background-color: #eae7e2;
@share-this-page-icon-color: #808080;
@hover-share-this-page-background-color: #26314d;
@hover-share-this-page-icon-color: #fff;

//FOOTER
@footer-background-color: #000f38;
@footer-links-color: #000f38;
@footertext-color: #000f38;

// PAGE
@global-link-color: #337ab7;
@bodycontainer-color: #fff;
datasouth replied on at Permalink Reply
datasouth
Hi,

Try clearing your cache and see if the changes you did is working? I'll see if I can replicate your issue on my end.

Thanks and regards.
mojoburns replied on at Permalink Reply
mojoburns
Yep have done that a couple of times, also have all my cacheing turned off. Am able to make other design changes and they seem to work. thanks.
datasouth replied on at Permalink Reply
datasouth
Hi,

No worries. I'll let you know if we figure it out.

Thanks.
datasouth replied on at Permalink Reply
datasouth
By the way, can you provide me with a link to your site - so we can check?
mojoburns replied on at Permalink Reply
mojoburns
www.bluelotusdreaming.com
datasouth replied on at Permalink Reply
datasouth
Hi,

Can you try and go to the customization panel and reset all settings? There should be a "Reset" button at the very bottom of the panel. Hopefully this would flush the saved presets and show your changes.

Please let me know if this works.

Best regards.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.8
Version Installed - 5.7.5.8
Database Version - 20160412000000

# concrete5 Packages
Add and Remove Classes and IDs (0.9.5), Automatic Email Obfuscator (2.0.1), Background Image and Overlay (0.9.7), Empire Theme (1.0.2), Icons for Redactor (0.9), Login/Logout Link (1.0), Spacer (0.9.3), Vivid Store (3.1.4).

# concrete5 Overrides
languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 1 minutes.

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.43

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, http, iconv, imagick, imap, intl, ionCube Loader, json, ldap, libxml, magickwand, mailparse, mbstring, mcrypt, mhash, mysql, mysqli, OAuth, oci8, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, 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 - 256M
post_max_size - 64M
sql.safe_mode - Off
upload_max_filesize - 64M
http.persistent.handles.limit - -1
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
oci8.max_persistent - -1
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

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.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.