Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #525261

    Hey there – we’re adding some custom font via cloud.typography.com – We need to add the css key in the header tag, not body tag otherwise the default font loads first for a second before the custom font replaces it. I used codeable service to set up the custom font but they placed the css key code provided by typography.com in the <body> tag field in general settings. I am assuming I need to change the header.php template – and just add this code you see below in the private content area.

    Wanting to check best placement first before I broke the internet :) Not keen on mucking around with the .php files :)

    • This topic was modified 9 years ago by loudcow.
    #525463

    Hi loudcow,

    Please try the following in your child theme’s function.php:

    function typography_stylesheet(){ ?>
    <link rel=”stylesheet” type=”text/css” href=”//cloud.typography.com/6568274/675508/css/fonts.css” />
    <?php
    }
    add_action('wp_head', 'typography_stylesheet');

    Regards,
    Rikard

    #525862

    Hello – thought it worked iniitally by no such luck after navigating around. Still flashing default text first. Should it be placed in the header.php? This is the suggestion from typography.com Refer to link in private field.

    • This reply was modified 9 years ago by loudcow. Reason: Thought ticket was resolved - but wasn't
    #527609

    Hi!

    authentication login is needed for the link you have provided. You can post login details here as private reply.

    Cheers!
    Andy

    #527744

    Ooops. Sorry Andy

    Sorry about that – added this after I posted my ticket and forgot! Details below.

    #528256

    Hi,

    The code I gave you will add the code to the header and when inspecting your page I can see it inside of the head tag. I’m not sure what you mean by flashing text though?

    Regards,
    Rikard

    #529788

    “flashing’ probably not the right word. The default text appears for a second before being replaced by the custom font. Any way around this?

    #530510

    Hi,

    You mean that the font is not the one you want for a short period of time before everything loads, right? That is due to it not loading fast enough, not sure you can do much about that with your current settings. Would you be able to download the font and place it on your own server instead? That will most likely help.

    Thanks,
    Rikard

    #578206

    Hi there,

    I am also facing some troubles adding a custom font type I have just downloaded and converted with ‘Font Squirrel’.
    I have just followed the steps from the link below:

    http://justcreative.com/2013/01/22/how-to-use-custom-fonts-with-font-face-on-wordpress/

    It still doesn’t work. Probably I’m doing something wrong. Could some of you please help me out?

    Thanks in advance!
    BTW: The font I want to change is just for the header title on the main page!

    #579150

    Hey!

    What is the font face code? Please post it on pastebin.com. And where can we find the heading title?

    Best regards,
    Ismael

    #579264

    Hi Ismael,

    First thanks for your reply! The font face code is: ‘optimusprinceps’
    What does the paste does in pastebin.com? And is it possible to have that font for the website?

    I want to have this font for the entire website. If this is not possible I would like to have this at least for the title of the main page.

    Hope to hear from you again!
    Best regards,
    Anthony

    P.S. I use the Enfold ‘One Page’ theme.

    #579582

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #579706

    Hi Josue,

    The website is not online yet. But here is the link of the theme where you see the title as well.
    http://kriesi.at/themedemo/?theme=enfold-overview

    I really need to do it. Its quite simple to understand. I just want the text changed in another font. In this case for example the text: “Welcome! I am Enrique Fold”
    The font is: optimusprinceps

    Hope to hear soon from you guys!
    Thanks in advance!

    • This reply was modified 8 years, 9 months ago by anthonyajl.
    #579928

    Hey!

    The following CSS code should do the trick:

    h2.avia-caption-title {
        font-family: "optimusprinceps";
    }

    Best regards,
    Josue

    #580064

    Hi Josue,

    Thanks! Where do I have to paste this code? The custom.css, or in the quick css? Do I have to replace a code or just add it.
    I am struggling for hours to get this thing working. Hope it’s gonna work because I really want this font integrated.

    Hope to hear again from you.

    Thanks!

    Anthony

    #580077

    Hi Josue,

    It works!! Thank you so much!! I’m so glad with it!
    Again many thanks!!

    Could you also tell me please how to get this done for the text of the title from avia2, the header menu links and for the ‘special heading’ text?

    Anthony

    • This reply was modified 8 years, 9 months ago by anthonyajl.
    #580345

    Hey Anthony,

    Try with this:

    #top .av-special-heading,
    #top .main_menu ul:first-child > li > a{
        font-family: "optimusprinceps";
    }

    Regards,
    Josue

    #581826

    Hi Josue,

    Thank you so much for your help!! Then I have one last question: How can I move the ‘caption title’ more to the top of the page instead of right in the middle of the page. There is no option like top-center for this. Only center-center.

    Could you help me out..?

    Thanks again!!
    Cheers,
    Anthony

    #581842

    Hi,

    Can you post the link to your website please? what kind of slider are you using?

    Regards,
    Josue

    #581849

    Hi Josue,

    I am using the fullscreen slider. I guess this is also the default one of the Enfold One Page theme.

    Regards,
    Anthony

    #582182

    Hey!

    Try adding this code to the Quick CSS:

    .slideshow_align_caption {
        vertical-align: top;
    }

    Cheers! 
    Josue

    #582391

    Hi Josue,

    Wowwww!!! You are amazing!!! Thank you so many many times! This makes my day!

    Cheers!
    Anthony

    #582549

    Glad to help Anthony :)

    Regards,
    Josue

    #584434

    Hi Josue,

    Can I please ask you one last question: Could you please give me any code and tell me where to place this code for getting more then 2 buttons on the main area within the fullscreen slider?

    I have asked this in another topic, but no one is really responding.

    Regards,
    Anthony

    #584653

    Hey Anthony!

    I replied you there.

    Regards,
    Josue

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