Problems with polish fonts - by curtluna

This topic has 17 replies, 5 voices, and was last updated 4 years, 6 months ago ago by Olga Barlow

  • Avatar: curtluna
    curtluna
    Participant
    February 17, 2015 at 12:05

    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.

    Please, contact administrator
    for this information.
    16 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    February 17, 2015 at 13:20

    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.

    Avatar: curtluna
    curtluna
    Participant
    February 24, 2015 at 15:09

    Still when I check with tools like browsershot that problem occur Bad polish fonts

    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?

    Please, contact administrator
    for this information.
    Avatar: curtluna
    curtluna
    Participant
    February 26, 2015 at 18:50

    Does anybody help me?

    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 27, 2015 at 09:00

    Hello,

    Try to use @font-face. Please read more here:
    https://css-tricks.com/snippets/css/using-font-face/

    Regards,
    Robert Hall.

    Avatar: curtluna
    curtluna
    Participant
    March 2, 2015 at 12:34

    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.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 2, 2015 at 16:07

    Hello,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall.

    Avatar: curtluna
    curtluna
    Participant
    March 5, 2015 at 12:20

    Attached

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 5, 2015 at 12:51

    Hello,

    Sorry, but your credentials isn’t correct.

    Regards,
    Robert Hall.

    Avatar: curtluna
    curtluna
    Participant
    March 6, 2015 at 18:35

    Let’s try again. This time I have test those credentials and it looks like they are working

    Please, contact administrator
    for this information.
    Avatar: curtluna
    curtluna
    Participant
    March 16, 2015 at 23:52

    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.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 17, 2015 at 16:05

    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.

    Avatar: curtluna
    curtluna
    Participant
    March 27, 2015 at 00:46

    Hi it doesn’t solve the problem.

    Avatar: curtluna
    curtluna
    Participant
    March 27, 2015 at 00:48

    It still doesn’t resolve the issue. My clients are really pissed on me so please make those thing works.

    Avatar: Eva
    Eva Kemp
    Support staff
    March 27, 2015 at 14:32

    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.

    Avatar: antoninarobak
    antoninarobak
    Participant
    May 18, 2020 at 21:09
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 19, 2020 at 09:12

    Hello, @antoninarobak

    Sorry, don’t understand your message. How can I help you?

    Regards

  • Viewing 17 results - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.