Site logo

Archived topic

The update of GP Premium 2.3.-rc.2 breaks loading local fonts

2 replies · Started by Jenny Dupuy on March 22, 2023

Viewing posts 1–3 of 3

Hi,

Since I updated GP Premium to 2.3.0-rc.2, the local fonts are not loading anymore.
Same for locally hosted svg icons.

The local fonts are called via the additional css, with this code by example:


/* comfortaa-300 - latin */
@font-face {
  font-family: 'MyComfortaa';
  font-style: normal;
  font-weight: 300;
  src: url('https://mydomain.com/wp-content/uploads/fonts/comfortaa-v40-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('https://mydomain.com/wp-content/uploads/fonts/comfortaa-v40-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('https://mydomain.com/wp-content/uploads/fonts/comfortaa-v40-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('https://mydomain.com/wp-content/uploads/fonts/comfortaa-v40-latin-300.woff') format('woff'), /* Modern Browsers */
       url('https://mydomain.com/wp-content/uploads/fonts/comfortaa-v40-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('https://mydomain.com/wp-content/uploads/fonts/comfortaa-v40-latin-300.svg#Comfortaa') format('svg'); /* Legacy iOS */
}

and the svg icon by this code, for example:
#nav_menu-5 h2:before{content:url(../wp-content/uploads/icones/folder.svg);}

Is it better that I put back GP premium 2.2.2 and wait for 2.3.0?

Sorry, it is not GP premium the cause of this problem but a .htaccess file protecting the /uploads folder

No problem. Glad to hear you found the issue.

This archived topic is closed to new replies.