Jump to content

Archived

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

tristanrodgers

Adding a Custom Font

Recommended Posts

tristanrodgers

Website URL: http://mc1r-magazine.com/
Framework Version:  2.1.9.2
WordPress Version: 4.1
Plugins in Use: The Pagelines Plugins

 

Hey guys,

 

I have a problem since I tried to add a custom font in my theme.

I created a font-face-kit via "font-squirrel" and I tried to include the font on this way the docs tell me to do it:

 

http://docs.pagelines.com/tutorials/adding-custom-fonts

http://docs.pagelines.com/customize/base-child-theme

 

But it didn't work and it messed up the page in Firefox. Of course the Cache is empty, code deleted, plugins deactivated, but it still shows a messed up page in Firefox! I've included 2 screenshots to show you the problem (and another problem with the background-color of the font, maybe you see there is blue but I've chosen an orange)

 

Greetings,

Tristan

Share this post


Link to post
Share on other sites
tristanrodgers

My question is: How can I add a custom font to my website with using DMS as my theme. There is no Child Theme basiclly installed in the system or something else. Do I really have to download it and include it like the 2 links tell me to do?

Share this post


Link to post
Share on other sites
Danny

Hi,

 

The documentation for implementing custom fonts, works I wrote the article and tested it vigorously before publishing it. Therefore, if you're having issues with implementing a custom font, you're not following the instructions correctly or you have something else causing the issue.

Therefore, you're going to need to give us more information such as:

 

A link to the site in question and make sure DMS debug mode is active.

Are you using a child theme and have you added the code to the child theme?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
tristanrodgers

I don't use Child Theme, so maybe i didn't install it right? In my font face generated css the code is double and in your doc there is only one part to edit and copy, how do I handle that?

 

I'll try it again later and will let you know how it worked! Thank you for your reply or where the issue could be!

Share this post


Link to post
Share on other sites
Danny

I am not sure what you're referring to when you say the following:

 

"In my font face generated css the code is double and in your doc there is only one part to edit and copy, how do I handle that?"

 

If you have generated custom CSS for your font, then you need to add the fonts CSS to your custom CSS, this can be either in the Custom CSS editor in the DMS toolbar or a child theme. Then you will need to upload your fonts to a location on your server and then update the paths in the fonts CSS to match the paths to where you uploaded the font files.

You will then need to override the default CSS for your elements to use that font family. Such as:

 

h1 {

  font-family: "MyCustomFont";

}


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Borries
      By Borries+
      I know this is not an easy problem. Maybe there is a easy solution.
      I have tryed to uses the existing solution, that I have found in the forum
      I changed the colours of my nav (simple nav) and the hover effect (a. hover).
      I really tryed to highlight the active/used link in the nav but I cant figure it out.
      I want it to be black when active.
      Any help would be appreciated. Thanks.
      http://www.marcborries.de  nav link: "Sinn & Selbst" 
    • Dan Haddock
      By Dan Haddock
      Hi Pagelines team and wider community,
      I am looking to develop a single post page for my blog. I have read over an old article on the subject, however the link provided on achieving this goal was giving me security warnings. Is there any way I can get round this?
      Secondly, I have had a root around the .zip file provided on my sites backup, however was unable to locate any file in there with the name of Single.php. Does this file exist in the Pagelines theme?
      By the way, this is the unsafe article: http://support.pagelines.me/docs/customization/create-a-custom-page-template/ (Click at your peril).
       
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey all, hope I worded the topic correctly!
      I just need to know if either 1) I'm making a mistake or 2) this could be set as a new feature?
      Using the global settings typography parameters, I have a global paragraph font type (set using googlefonts) and have set the style to align:justify. When laying out <p> text inside a simple TEXT module, the <p> text adheres to both the font type and justification. Perfect.
      Now, when I set <p> text inside the PARAGRAPH TEXT field within an ELEMENT module, the <p> text adheres to the font type, but not the justification. It's rather annoying as I like to fully justify para text across the board and tend to use Element modules instead of text boxes for various reasons. It also seems silly that some PARAGRAPH TEXT fields adopt global settings, whilst other don't.
      Or I'm doing it wrong :S
      Any help or advice is much appreciated!
      Cheers
    • John Olsson
      By John Olsson+
      Hello,
      I wondering (and custumers) when does Font Awesome 4.7 comes with an update of Pagelines?
    • Queue-it
      By Queue-it+
      Hi,
      I have the primary font family set to Arial. If I add another font (Open Sans), how do I change it only on a specific page? 
      I want to have Open sans only on one of my landing pages, but by default it will fetch Arial. Is there a way to change it without a plugin?
       

×