-
Author
-
March 13, 2018 at 18:59 #191606alexliiParticipant
Hello,
With the latest version 4.34
there always some error like:
Screenshot:
Please let me know how to resolve it, thanks.
Alex
March 14, 2018 at 19:21 #191736RaduModeratorHi,
Try to re-upload theme files or/and de-activate all plugins then check if the same issuer persists, let me know
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 15, 2018 at 17:40 #191889RaduModeratorHi,
I see, in this case not sure if you can use google fonts but anyway you can load the load the webfont.js file using the next function
COPY CODEfunction add_custom_css_for_logo(){ echo "<style>n"; echo '<script type="text/javascript" src="https://yourdomain.com/webfont.js"></script>'; echo "n</style>"; } add_action( 'admin_print_styles', 'add_custom_css_for_logo' ,90);
Add this function to wp-content/themes/kleo-child/functions.php
Replace https://yourdomain.com/webfont.js with your path for that file.
I’ve attached the webfont.js file download unzip and upload it then replace the path from the function with the current file path.
Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.March 16, 2018 at 07:29 #191939alexliiParticipantHello,
Our main site address is https://lovcour.com, so I did as your instruction in Child theme, if I am wrong, please correct me:
screenshot:http://prntscr.com/irvrp3COPY CODEfunction add_custom_css_for_logo(){ echo "<style>n"; echo '<script type="text/javascript" src="https://lovcour.com/webfont.js"></script>'; echo "n</style>"; } add_action( 'admin_print_styles', 'add_custom_css_for_logo' ,90);
since I do not know exactly which directory I should put webfont.js in, so put it both in our project directory and wordpress directory:
Screenshot:
http://prntscr.com/irvsw5
http://prntscr.com/irvsohBut it does not work, both or theme option and Visual composer backend page, also there are different with the version request, visual composer request the version 1.4.7, but Kleo theme request: 1.5.0
Kleo theme screenshot:http://prntscr.com/irvtmw,
Visual composer screenshot: http://prntscr.com/irvuo7What I did wrong please?
Alex
March 16, 2018 at 16:29 #191982RaduModeratorHi,
It’s ok in root, but to can be sure before using snippet access direct the link https://lovcour.com/webfont.js to see if the path it’s ok.
To can have latest theme recommended plugins you can check in wp-admin -> appearance -> install plugins
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 16, 2018 at 19:11 #191994alexliiParticipantHi Radu,
Thanks, I confirm this url is accessible: https://lovcour.com/webfont.js
But seems it still not work, here are screenshot for your check:
Child function file: http://prntscr.com/is4r85
Theme function: http://prntscr.com/is4s9c
Visual composer: http://prntscr.com/is4vz2Anyway, we are now only talking about the error with google webfont error: https://ajax.googleapis.com/ajax/libs/webfont/1.5.0/webfont.js?ver=1.5.0
but how to resolve this one please:
https://support.lovcour.com/wp-content/themes/kleo/kleo-framework/options/assets/js/vendor/qtip/jquery.qtip.min.js.mapAny relationship with these two errors please?
Thanks
Alex
March 19, 2018 at 16:21 #192311RaduModeratorHi,
there it’s a .map in + not sure from where.
Try to switch the development mode on/off from wp-admin -> theme options -> miscellaneous -> check if it’s any difference at loading if it’s ok, also i’ve checked the code to see if there it’s .map in plus. but isn’t.
Maybe you will have to replace the webfont.js path in parent theme files ( this is not recommended but the functions cannot be overwritten in child and after you theme update you should re-do this modification. )
Anyway i’m not sure if you will be able to use google fonts in your current location if the gov had blocked access to the google.
More or additional fonts you can add using this method : https://archived.seventhqueen.com/forums/topic/how-can-register-japanese-font
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 21, 2018 at 09:08 #192554alexliiParticipantHello,
Here is the summary of my test in multisite of wordpress4.9.4.
1#I check it in fresh created subsite.
2# and I used the plugin to replace google rescoures: https://wordpress.org/plugins/useso-take-over-google/, it will replace all of google resource to another site in China, and the error of webfont.js will disappear.
3.enbale development mode, but the error with jquery.qtip.min.js.map is still thereplease check this screenshot:http://prntscr.com/iu5cib
this only happen with the latest version of Kleo.
Alex
March 21, 2018 at 17:57 #192612RaduModeratorDid, you had solved the issue with this resource ? :
Cannot see any error at this moment
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 21, 2018 at 18:30 #192619alexliiParticipantSorry, not yet.
you just checked our login site, I did not activated the plugin of useso-take-over-google, Here is the screenshot at my side: http://prntscr.com/iudv08
anyway, as to webfont.js, I can resolve it by using useso-take-over-google, the reason why there is no webfoot.js error at your side is that Google Js resources are accessible to you. You are in the internet, but we are in intranet:)
As to jquery.qtip.min.js.map, I just support it is delivery by your CDN or some optimizing coding, I am not technical background, but I found some information about js.map.
FYI:
https://stackoverflow.com/questions/21719562/javascript-map-files-javascript-source-maps
https://stackoverflow.com/questions/18425841/angular-min-js-map-not-found-what-is-it-exactly
https://stackoverflow.com/questions/29863070/why-we-use-minified-version-of-angularjs-reason-to-give-preference-to-angular-m?noredirect=1thanks, and hope you can feed back to your developers.
Alex
March 21, 2018 at 18:57 #192624RaduModeratorHi,
You can edit that file : wp-content/themes/kleo/kleo-framework/options/assets/js/vendor/qtip/jquery.qtip.min.js
and to delete that comment
Anyway it seems that it’s a little issue from chrome that interprets that as a link? https://stackoverflow.com/questions/23570843/qtip2-loads-a-jquery-qtip-min-map-from-internet-and-slows-down-site
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.