Home>Support>Creating Custom Font for header of Website with Vantage Theme

Creating Custom Font for header of Website with Vantage Theme

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Hi there,

I have recently updated my Vantage theme to premium and when I did this my customized font was changed. I cannot figure out how to change my header font to a customized font. I have tried many codes(that I used and worked when I was using the free version) that I found on these forums although nothing seems to be working.

Any help would be greatly appreciated!

Thanks so much!!

URL: http://globalshades.ca/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    Could you please answer a few questions which will allow us to assist you better.

    1. What custom font were you using.
    2. was it a web font.
    3. if so what folder did you upload your font files to.

    Thanks

    Magus

  2. 10 years, 1 month ago global shades

    Hi I am using a font called “eurostar regular extended”. It is a custom web font and I am uploading it to CPanel in my public_html folder.

  3. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    That should be fine. Depending on the font there should be several files. Could you please list these files for me here as each one needs to be added for different compatibility.

    thanks

    Magus

  4. 10 years, 1 month ago global shades

    Here is the list of the files:

    euroregularextended-webfont.eot
    euroregularextended-webfont.svg
    euroregularextended-webfont.ttf
    euroregularextended-webfont.woff
    euroregularextended-webfont.woff2

  5. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    Please move the files into a folder called ‘fonts’ (lowercase) and ensure that the folder has permissions of 755.

    Then try adding the following to Appearance->Custom CSS

    @font-face {
        font-family: 'Euro-Regular-Extended';
        src: url('http://globalshades.ca/fonts/euroregularextended-webfont.eot');
        src: url('http://globalshades.ca/fonts/euroregularextended-webfont.eot?#iefix') format('embedded-opentype'),
             url('http://globalshades.ca/fonts/euroregularextended-webfont.woff') format('woff'),
             url('http://globalshades.ca/fonts/euroregularextended-webfont.ttf') format('truetype'),
             url('http://globalshades.ca/fonts/euroregularextended-webfont.svg#Euro-Regular-Extended') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    

    If you want all your text to be in this font you will also need to add the following

    body { font-family: 'Euro-Regular-Extended' !important; }
    

    If after this the font does not still appear please add the following to your .htaccess file

    <FilesMatch "\.(ttf|otf|woff)$">
     <IfModule mod_headers.c> 
    Header set Access-Control-Allow-Origin "*" 
    </IfModule> 
    </FilesMatch>
    

    Let us know how you get on

    Magus

  6. 10 years, 1 month ago global shades

    Hi there,

    I am trying it right now and I am trying to edit my header (the name of our company) although this is not working. I do not know if this is because I do not have the correct name for the header when I type it into my CSS although I have tried many different names for it.

    Currently I have

    /* Site Title Font */

    header#masthead h1 {font-family: ‘Euro-Regular-Extended’ !important;}

    This is what I used last time before I upgraded to premium and it worked.

    I have made a new file in my public_html in my cpanel called fonts and added the first CSS you provided.

    Should I try adding the last code you provided and if so where?

    Thank you so much!

  7. 10 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Give this a try:

    /* Vantage Site Title */
    
    header#masthead .hgroup h1 {
    font-family: 'Euro-Regular-Extended' !important;
    }
    
  8. 10 years, 1 month ago global shades

    Hi Andrew,

    no that did not work either :( thank you though!!

  9. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    If you have successfully moved the font files into the new font folder, and if the folder has permissions set to 755 then all should be working unless the host has limited the file-types accessible to the PHP/CSS scripts.

    This is not unheard of, if the files are in the right place and the CSS has been added then you will need to add the last section of code I provided to your .htaccess file in public_html.

    We had the same issue with a customer on Hostgator last week.

    Let us know how you get on

    Magus

  10. 10 years, 1 month ago global shades

    This is very weird. I added that last CSS and I put the code in that Andrew provided and made sure that the font folder has all permissions set.

    I am not too sure what is happening. I may call GoDaddy and see if there is anything that is restricting me from changing the CSS.

  11. 10 years, 1 month ago global shades

    Ok So i do not think that it is the hosting site “GoDaddy” because I was using GoDaddy even before I update the Vantage theme to the premium version.

    I have a “fonts” folder made in my cpanel in the public_html folder and I added the CSS to the .htaccess file

    When I add the: /*Vantage Site Title*/ code it changes the font from a calibri type font to a more times new roman but not the correct font. And the font takes longer to show up.

    I am not too sure what to do at this point. Is there anything else you could think of?

    Thank you so much for all of the help!

  12. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    You should not have added any CSS to the .htaccess file. Were you meaning this code

    <FilesMatch "\.(ttf|otf|woff)$">
     <IfModule mod_headers.c> 
    Header set Access-Control-Allow-Origin "*" 
    </IfModule> 
    </FilesMatch>
    

    When inspecting the page I am getting an error that the file does not exist for

    http://globalshades.ca/fonts/euroregularextended-webfont.ttf
    

    Please post the contents of the .htaccess file in a private reply and if possible a screenshot of the expanded fonts folder from your cpanel.

    Thanks

    Magus

  13. 10 years, 1 month ago Private Message - global shades

    This is a private message.

  14. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    The .htaccess looks fine and with the file not found error it seems it may be a permissions issue.

    I cannot see a screenshot, if you linked to one. If you did have one please upload it to your sites media library and link it through the website.

    Thanks

    Magus

  15. 10 years, 1 month ago Private Message - global shades

    This is a private message.

  16. 10 years, 1 month ago Private Message - global shades

    This is a private message.

  17. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    Everything looks good with the contents and the files are accessible. I checked the provided style sheet and it is identical to the CSS we provided excluding the path to the files. What I was hoping to see from the screenshot were the file permissions for the font files and the permissions for the fonts folder itself. Would it be possible to provide shots of those parts of the screen for the files and folder.

    From the behaviour so far it is definitely looking like a file/folder permissions issue.

    Magus

  18. 10 years, 1 month ago Private Message - global shades

    This is a private message.

  19. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    Permission 644 is correct for the fonts themselves, what about the fonts folder

    Magus

  20. 10 years, 1 month ago Private Message - global shades

    This is a private message.

  21. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    It shouldn’t make any difference but please try changing the original CSS to this

    @font-face {
        font-family: 'eurostar_regular_extendedRg';
        src: url('/fonts/eurostarregularextended-webfont.eot');
        src: url('/fonts/eurostarregularextended-webfont.eot?#iefix') format('embedded-opentype'),
             url('/fonts/eurostarregularextended-webfont.woff2') format('woff2'),
             url('/fonts/eurostarregularextended-webfont.woff') format('woff'),
             url('/fonts/eurostarregularextended-webfont.ttf') format('truetype'),
             url('/fonts/eurostarregularextended-webfont.svg#eurostar_regular_extendedRg') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    

    This is an exact copy of the font squirrel provided one which I have altered to use the fonts folder via relative links rather than absolute. You will need to alter the name of the font in the CSS you entered to target the title.

    Magus

  22. 10 years, 1 month ago global shades

    Hi Magnus,

    Ok should I include the website name before the “/fonts”?

    Thank you

  23. 10 years, 1 month ago global shades

    Hi Magnus,

    This did not work either…

    Thank you for the CSS though!

  24. 10 years, 1 month ago Magus
    Hi, I Work Here

    Hi Global Shades

    I see you have moved the fonts into the theme folder, I have tested and if you add this to your custom CSS you should see the correct result.

    .site-title {
        font-family: "eurostar_regular_extendedRG";
    }
    

    It does look like it was a permissions issue, although it should have worked from the fonts folder in the site root. Still, it is good to know that in cases like this there is a viable solution.

    Magus

  25. 10 years, 1 month ago global shades

    THANK YOU SOOO MUCH!!!!!! It finally worked!!!

    Thank you for all of your help I really appreciate it!!

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More