You can place it in header.php
between starting <head>
and closing </head>
tags and it should work properly.
Or perhaps a better solution would be to enqueue the style in functions.php
function google_fonts() {
$query_args = array(
'family' => 'Sigmar+One'
);
wp_register_style( 'google_fonts', add_query_arg( $query_args, "//fonts.googleapis.com/css" ), array(), null );
}
add_action('wp_enqueue_scripts', 'google_fonts');
Related Posts:
- Override template file i subfolders
- How to override p2 breathe theme plugin in content template file?
- Need help with adding templates (archives and sitemap) to WordPress child theme
- Why still output /wp-content/themes/twentynineteen?
- Child theme in separate WordPress Install
- How to show children pages as array
- What’s the difference between home.php and index.php?
- how can I add an icon/image for a child theme?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Page template in two level deep folder
- How to add Color Picker in Theme Options for the following?
- Different wordpress 404 template for different post type [duplicate]
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- Retrieve the template directory URI via global or get_template_directory_uri() every time?
- Add a preview to a WordPress Control Panel
- Add a #hash to the links in my custom menu
- How do I get my child-theme to work with my theme’s includes folder?
- How to load different CSS in different Header?
- How do I get a parent theme modification from a child theme?
- CSS in child theme not overriding the parent theme [closed]
- Optimal solution to develop a wordpress theme?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- Nesting Functions within Functions
- Create a theme by combining a parent and a child theme
- De-registering parent style sheet css recommended?
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Override Constants in Child theme
- How do I update WooCommerce template files in my theme? [closed]
- Check if password protected post is visible
- How to Edit the style of header title of Twenty Eleven Theme?
- Theme development question regarding layouts
- Child theme style.css versioning
- WordPress Theme Development: How to redirect templates the right way?
- Disable front-page.php template
- Change the template of multiple multisite pages at the same time
- Cannot figure out how to overwrite files in child theme
- How to add theme support?
- Removing non native customizer settings from a child theme
- Link to a .po file in a child theme
- Alias to theme folder for local development
- Inheritance of parent theme plugin files in a child theme
- Divi Child Theme not appearing in “Themes” [closed]
- Injecting a custom sql query into a page/theme
- Single page site with history.js
- Select full Image Size on widget “Genesis – Featured Posts”
- Child theme enqueue scripts using new functions
- Show woocommerce categories on my theme menu styling
- Move default page templates to sub directory
- Child Theme’s style.css not loading in mobile browser
- Where to place template files?
- Renaming a theme so it aids SEO and the theme used is hidden
- Is there any tool to find lines of codes responsible to generate front-end HTML elements?
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Overrite parent functions using child functions
- Load sidebar template just once to prevent multiple animations
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Replace single_template filter with what for default posts?
- Will my site get messed up when the wordpress theme updates if I edited the html code in the editor to change footer?
- How to seperate static phrases from template files in custom theme?
- How to correctly enqueue the parent and child theme stylesheets in the creation of a child theme? [duplicate]
- Overide enqueue in non plugable function via child theme
- Broken theme, template is missing
- How to add menù section to my WordPress template?
- Starting point for custom Themes [closed]
- Post and page content not displaying in search results
- Do I need to create a child theme for JointsWP
- Why is switching between themes breaking my child theme?
- jQuery from parent theme loaded with many other scripts in a single min.js file
- Password protect a custom template
- Templates dropdown not appearing using _s theme (underscores)
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Translate a child theme with pure PHP and gettext
- Confused by the behaviour of “front page” / “home” templates
- Remove h1 from 2015 theme
- I need to develop a one-page design
- add jquery file if a certain page is included
- Add content after get_header
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?
- Block validation failed for `core/pullquote` after adding theme support for editor-color-palette
- How to show metabox on page if it is using a template
- How to test another theme in a live WordPress website instead of live preview?
- Template for front page (latest posts)
- which template should I use for single category post?
- Should I use template files or just use conditional tags in index.php?
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Different templates for each category level
- Editing Them with Child Theme Basics [closed]
- Hook in parent theme Menu function
- Create a variable with string, array or multiple values
- Using require_once for parent-directory not working but is working in sub-directories
- Protecting work on client’s web host
- What is the advantage of using home.php over index.php for the front page
- What to do when child theme is out of date with parent theme
- Twenty sixteen – full height
- ways to create customized theme (hard coded – no pagebuilder)
- What is the point of using the front-page.php template? [closed]
- Theme template file for a specific custom taxonomy