Ivdbroek
Forum Replies Created
-
@bestspotsworld the location of the file is:
wp-content>plugins>nextgen-gallery>products>photcrati_nextgen>modules>nextgen_gallery_displayi commented line 307
hope it helps for you
Thanks for the help and hope the code will get reviewed, since clearly it is not working as supposed.
Apparently the probems is in server FA for IIS servers
I out commented 1 line and it fixed the problem 🙂// Font Awesome if (wp_style_is('fontawesome', 'registered')) { wp_enqueue_style('fontawesome'); } elseif (strpos(strtolower($_SERVER['SERVER_SOFTWARE']), 'microsoft-iis') !== FALSE) { // wp_enqueue_style('fontawesome', site_url('/?ngg_serve_fontawesome_css=1')); } else { $router = C_Component_Registry::get_instance()->get_utility('I_Router'); wp_enqueue_style('fontawesome', $router->get_static_url('photocrati-nextgen_gallery_display#fontawesome/font-awesome.css')); }source: module.nextgen_gallery_display.php
yes i did at first, they said to go to you. so this is gonna be a vicious circle 😉
Could u point me towards disabling Fontawesome in NGG?
Then ill contact Themeowner how i can disable it in them.Ill go then for the easiest way 😉 (my preference is disabling it in NGG though)
how do i solve this, since i did not alter the code in any way.
I do have been looking around for the file to do some trial and error. but couldnt find itBesides adding mime types (which didnt help) they see no issues.
the ngg addon code does use different urls:@font-face{ font-family:'FontAwesome'; src:url('../fonts/fontawesome-webfont.eot?v=4.0.3'); src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../http://devalkeniers.nl/test/?ngg_serve_fontawesome_woff=1?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');source: http://devalkeniers.nl/test/?ngg_serve_fontawesome_css=1&ver=3.8.1
webconsole throws this error, maybe it helps.
downloadable font: download failed (font-family: “FontAwesome” style:normal weight:normal stretch:normal src index:1): bad URI or cross-site access not allowed
source: http://domain.nl/http://domain.nl/test/?ngg_serve_fontawesome_woff=1?v=4.0.3 test
downloadable font: download failed (font-family: “FontAwesome” style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed
source: http://domain.nl/fonts/fontawesome-webfont.ttf?v=4.0.3