This topic has 17 replies, 5 voices, and was last updated 4 years, 6 months ago ago by Olga Barlow
Hi
I’ m having some issues with default fonts in Royal Theme.
I have issue with Roboto font. In Firefox 30+ and IE 11+ on Win platform polish eg ą,ę,ż,ź fonts doesn’t work.
I have red this forum and tried to change couple of things. Even thought it doesn’t work as it should.
In theme functions I’ve replaced default Roboto font definition to this
wp_enqueue_style("font-roboto",et_http()."fonts.googleapis.com/css?family=Roboto:400,300,300italic,100italic,100,400italic,500,500italic,700,700italic,900,900italic&subset=latin,latin-ext");
But it does not work out. Please help me.
Hello,
As I see the font is shown correctly in Firefox:
http://imgur.com/skvMGku
Please clear your browser cache and check again.
Thank you.
Regards,
Eva Kemp.
Still when I check with tools like browsershot that problem occur
How can I edit main theme font to another one. Is there any other font that would be looking ok and working with polsih fonts. How can I change font?
Does anybody help me?
Hello,
Try to use @font-face. Please read more here:
https://css-tricks.com/snippets/css/using-font-face/
Regards,
Robert Hall.
I have found place where default styles are overwritten. But I can’t find place where to edit it in code. So
The problem is
<meta name="generator" content="MasterSlider 2.9.8 - Responsive Touch Image Slider" />
<script type="text/javascript">
jQuery(document).ready(function() {
// CUSTOM AJAX CONTENT LOADING FUNCTION
var ajaxRevslider = function(obj) {
// obj.type : Post Type
// obj.id : ID of Content to Load
// obj.aspectratio : The Aspect Ratio of the Container / Media
// obj.selector : The Container Selector where the Content of Ajax will be injected. It is done via the Essential Grid on Return of Content
var content = "";
data = {};
data.action = 'revslider_ajax_call_front';
data.client_action = 'get_slider_html';
data.token = '11e5fc0898';
data.type = obj.type;
data.id = obj.id;
data.aspectratio = obj.aspectratio;
// SYNC AJAX REQUEST
jQuery.ajax({
type:"post",
url:"http://instytut-iws.pl/wp-admin/admin-ajax.php",
dataType: 'json',
data:data,
async:false,
success: function(ret, textStatus, XMLHttpRequest) {
if(ret.success == true)
content = ret.data;
},
error: function(e) {
console.log(e);
}
});
// FIRST RETURN THE CONTENT WHEN IT IS LOADED !!
return content;
};
// CUSTOM AJAX FUNCTION TO REMOVE THE SLIDER
var ajaxRemoveRevslider = function(obj) {
return jQuery(obj.selector+" .rev_slider").revkill();
};
// EXTEND THE AJAX CONTENT LOADING TYPES WITH TYPE AND FUNCTION
var extendessential = setInterval(function() {
if (jQuery.fn.tpessential != undefined) {
clearInterval(extendessential);
if(typeof(jQuery.fn.tpessential.defaults) !== 'undefined') {
jQuery.fn.tpessential.defaults.ajaxTypes.push({type:"revslider",func:ajaxRevslider,killfunc:ajaxRemoveRevslider,openAnimationSpeed:0.3});
// type: Name of the Post to load via Ajax into the Essential Grid Ajax Container
// func: the Function Name which is Called once the Item with the Post Type has been clicked
// killfunc: function to kill in case the Ajax Window going to be removed (before Remove function !
// openAnimationSpeed: how quick the Ajax Content window should be animated (default is 0.3)
}
}
},30);
});
</script>
<strong> <link href='http://fonts.googleapis.com/css?family=Rotobo' rel='stylesheet' type='text/css'/></strong>
In which PHP or other file it could be edited. I’ve edited it on firebug and add
fonts.googleapis.com/css?family=Roboto:400,300,300italic,100italic,100,400italic,500,500italic,700,700italic,900,900italic&subset=latin,latin-ext
And all fonts where displayed properly.
Hello,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall.
Attached
Hello,
Sorry, but your credentials isn’t correct.
Regards,
Robert Hall.
Let’s try again. This time I have test those credentials and it looks like they are working
So whats up guys?
Please help me with this spaghetti code. I paid for it and it should work.
My customers are upset and it is the only thing that doesn’t work even thought I have found place of bug and even send you my credentials.
Hello,
Sorry for a long delay.
You can find wp_enqueue_style("font-roboto",et_http()."fonts.googleapis.com/css?family=Roboto:400,500,700,300&subset=latin,cyrillic-ext");
string in framework/theme-functions.php file.
Regards,
Robert Hall.
Hi it doesn’t solve the problem.
It still doesn’t resolve the issue. My clients are really pissed on me so please make those thing works.
Hello,
As I see now the fonts are shown correctly:
https://s3.amazonaws.com/fvd-data/notes/168674/1427463027-pfcpNb/screen.png
Could you please provide a link and a screenshot where you see problems?
Thank you.
Regards,
Eva Kemp.
Hello, @antoninarobak
Sorry, don’t understand your message. How can I help you?
Regards
You must be logged in to reply to this topic.Log in/Sign up