Viewing 5 replies - 16 through 20 (of 20 total)
  • Moderator bcworkz

    (@bcworkz)

    Agreed. WP files should not be modified. The MyFonts kit is available as a WP plugin, so there would be no need to modify WP files.
    https://amazemedia.com/myfonts-webfont-wordpress-setup/

    Thread Starter lgehrig4

    (@lgehrig4)

    @sterndata Sorry to summon you back to this. I realize this last question may be more of a ‘fixing wordpress’ topic, but I didn’t want to start another thread since we’ve already done in depth here:)

    I ended up pasting the Font Kit’s CSS content into the CSS file that was already inside the child theme and everything is working. Below this content I’m just setting the fonts globally like this and it’s working fine

    h1, h2, h3, h4, h5, h6 {
    	font-family: 'Campton-bold' !important;
    }

    Do you see any problem in doing it this way? My thoughts are that if it is all done inside the theme directory itself that I can lose this when the theme is updated.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    As you note, it will go away when the theme is updated. Use the customizer to add custom CSS.

    Thread Starter lgehrig4

    (@lgehrig4)

    @sterndata I thought one of the purposes of a child theme was that you don’t lose your customizations when the theme is updated?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    oh, if it’s a child theme *that you manage*, it’s OK.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘Trying to load Custom CSS file’ is closed to new replies.