Jump to content

Archived

This topic is now archived and is closed to further replies.

mogulskier9

Loading custom DMS fonts Securely

Recommended Posts

mogulskier9

Good day!

 

Was wondering if you could help me understand a bit better how DMS loads fonts on https pages. A font has been added to DMS in the fonts folder, but the font won't load securely on the checkout page here: https://www.krassandco.com/checkout/ (will need to add a product to cart to see). Any idea how I can resolve this?

Share this post


Link to post
Share on other sites
Danny

Hi,

 

The issue isn't anything to do with DMS, it is related to our how you have added your custom font. If you want to use a custom font and have it so that when you switch to https, you need to code it without the http: in the code.

For example, you likely have the following:

 

@font-face {
  font-family:'interstateregularcompressed';
  font-weight:normal;font-style:normal
}
 
It should look like this:
 
@font-face {
  font-family:'interstateregularcompressed';
  src:url('//www.krassandco.com/wp-content/themes/dms/fonts/interstate_regularcompressed-webfont.eot');
  src:url('//www.krassandco.com/wp-content/themes/dms/fonts/interstate_regularcompressed-webfont.eot?#iefix') format('embedded-opentype'),
  url('//www.krassandco.com/wp-content/themes/dms/fonts/interstate_regularcompressed-webfont.woff') format('woff'),
  url('//www.krassandco.com/wp-content/themes/dms/fonts/interstate_regularcompressed-webfont.ttf') format('truetype'),
  url('//www.krassandco.com/wp-content/themes/dms/fonts/interstate_regularcompressed-webfont.svg#interstateregularcompressed') format('svg');
  font-weight:normal;font-style:normal
}
 

 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mogulskier9

Okay, I thought it was autoloaded, but now I see it was setup using {plchildroot}. I guess I'll just hard code it then. Thanks for your help!

Share this post


Link to post
Share on other sites
Danny

So you were using @{plChildRoot}/ in the CSS ?

 

Can you provide the code you have used please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio+
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio+
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
    • nizami
      By nizami+
      Using navbar section with correctly configured WP menu to display main navigation at https://elenaangel.com. 
      All fine in desktop viewport. Menu displays twice in hamburger mode. How to fix this please? 

×