D5 Creation Forum

Open Forum for D5 Creation's Members and Visitors

Before requesting any support Please search the Forum First. You may find your desired answer. This will save your waiting time and will save our working hour. We may not answer the question which we have already answered. You should also read our Support Policy

Font-Awesome in Innovation-Extend

Front Page D5 Creation Forum General Support Font-Awesome in Innovation-Extend

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7252
    Steve Brown
    Participant

    I’m nearing the completion of implementing this theme for a site and started optimising things for speed. It would appear that when using a CDN – just through Jetpack – there’s an issue with the loading of the font-awesome fonts.

    It only appears to affect Chrome as far as I can tell – ok in Firefox, Safari and IE so I’m guessing it’s a specific interpretation of the paths – should this be amended to an absolute path rather than the relative ../fonts/ path? Alternatively can or should the location be of the fonts be pushed to a CDN directly?

    Thanks

    Steve

    #7253
    D5 Creation
    Keymaster

    These are not Theme Functionality. You can put the Fonts in CDN and then change the locations of fonts from css/font-awesome.css file. Has the site more visitors than normal? You can also try installing any Caching Plugin like W3 Total Cache. We have pre-made Configuration for this Plugin for our Themes. You can find the Configuration File HERE.

    #7254
    Steve Brown
    Participant

    I’ve found the issue and it doesn’t relate to the CDN as far as I can tell.

    Google Chrome Dev panel gives this error…

    Font from origin ‘http://mydomain.com’ has been blocked from loading by Cross-Origin Resource Sharing policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://mydomain.co.uk’ is therefore not allowed access.

    Any ideas?

    Thanks for the config for W3 – I’m using this already so will be perfect.

    Regards

    Steve

    #7255
    Steve Brown
    Participant

    Found the answer – it’s because we have multiple domains pointing to the same site therefore Chrome won’t allow the cross-loading. I’m not sure if there’s a way around this so that the fonts will load relative to the domain that is being accessed?

    #7256
    D5 Creation
    Keymaster

    If your problem raises from http or https ( Non SSL or With SSL ) you can use the url structure for font loading like this

    //somecdn.com/font.ttf instead of using http://somecdn.com/font.ttf or http://somecdn.com/font.ttf

    //somecdn.com/font.ttf should handle both http or https fine

    #7264
    Bobb Rousseau
    Participant

    How to I change article and page font size in innovative extend

    #7271
    D5 Creation
    Keymaster

    Please follow This Article and change the font-family and font-size of your desired objects

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.