Jump to content
  • 0

Проблемы с подключением кирилличного шрифта через Google Fonts API


Kolombo
 Share

Question

Всем привет. Ситуация следующая: в англоязычной теме шрифт для заголовков не поддерживает кириллицу, вместо него подключаю нужный через Google Fonts API. Но по всей видимости англоязычный подключен через скрипты, по тому стандартная замена в css не срабатывает. Прошу помочь найти, где и как отключить шрифт по умолчанию, поскольку в этом не силен.

Поменял стандартный шрифт 'FolksLightRegular' на нужный 'Comfortaa'

/* Headings */
h1,h2,h3,h4,h5,h6 {
clear: both;
font-family: 'Comfortaa', cursive;

Правильно ли я понимаю, что 'FolksLightRegular' нужно отключить только в functions.php, и если да по подскажите какие строки править.

<?php
include_once TEMPLATEPATH . '/functions/inkthemes-functions.php';
$functions_path = STYLESHEETPATH . '/functions/';
/* These files build out the options interface. Likely won't need to edit these. */
require_once ($functions_path . 'latest_post_widget.php');
require_once ($functions_path . 'admin-functions.php'); // Custom functions and plugins
require_once ($functions_path . 'admin-interface.php'); // Admin Interfaces (options,framework, seo)
/* These files build out the theme specific options and associated functions. */
require_once ($functions_path . 'theme-options.php'); // Options panel settings and custom settings
function jquery_init() {
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', 'http://code.jquery.com/jquery-latest.min.js', false, '1.6.1', true); //load jquery from google api, and place in footer
wp_enqueue_script('jquery');
wp_enqueue_script('ddsmoothmenu', get_stylesheet_directory_uri() . "/js/ddsmoothmenu.js", array('jquery'));
wp_enqueue_script('confu', get_stylesheet_directory_uri() . '/js/cufon-yui.js', array('jquery'));
wp_enqueue_script('font', get_stylesheet_directory_uri() . '/js/Champagne.font.js', array('jquery'));
wp_enqueue_script('validate', get_stylesheet_directory_uri() . '/js/jquery.validate.min.js', array('jquery'));
wp_enqueue_script('verif', get_stylesheet_directory_uri() . '/js/verif.js', array('jquery'));
wp_enqueue_script('tabbedcontent', get_stylesheet_directory_uri() . '/js/slides.min.jquery.js', array('jquery'));
wp_enqueue_script('zoombox', get_stylesheet_directory_uri() . '/js/zoombox.js', array('jquery'));
wp_enqueue_script('custom', get_stylesheet_directory_uri() . "/js/custom.js", array('jquery'));
} elseif (is_admin()) {

}
}
add_action('init', 'jquery_init');
?>

Спасибо.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy