wp_enqueue_style is a MUST to add your styles according to codex. But you don’t need to use your child or parent theme name anywhere.
<?php wp_enqueue_style( $handle, $src, $deps, $ver, $media ); ?>
The first param $handle could be anything, doesn’t matter what you put here. I can see you have used your theme name in there, it acts as an identifier so you can use anything. But, make sure they are unique in all cases. For example, if you use like:
wp_enqueue_style( 'athletica-style', get_template_directory_uri().'/style.css' );
wp_enqueue_style( 'athletica-style', get_stylesheet_uri(), array('athletica-style') );
Here the handles are same, so you will see one of those css is added, not both.
I think you are familiar with other parameters of this function.
Note: It is not mandatory, but always a good practice to register the style using wp_register_style
function.
Related Posts:
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- Give priority to child theme stylesheet
- Get parent theme version
- How to use parent theme’s enqueue methods
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Enqueue styles properly in a child theme and stylesheets location
- Style.css in child theme is loaded before Bootstrap
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- Enqueue stylesheets if parent theme has more than one .css file
- ERROR MESSAGE: Missing index.php—Child Theme
- Priority loading file css in child theme
- Is my child theme working properly
- Child theme style repeated
- How to NOT call Font Awesome or font icons in WordPress
- @font-face broken in child theme
- Prevent a base themes css file from loading
- WordPress Child theme’s css not loading
- Child style loads before all parent styles
- How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn’t my child theme appearance match the parent?
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Can only override parent theme styling with ‘!important’ in child style.css
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- how to fix loading scripts in child theme?
- Why won’t my Custom CSS Load
- How to create my own style.css file in an wordpress child-theme
- How to override function in child theme
- Git vs Child Theme
- Do I need to update the child theme too after updating the parent?
- Use admin options from parent theme in child theme
- How Can I Use A Child Theme Effectively When Parent’s CSS Is Located in a ‘CSS folder’?
- How to “remove” file from parent theme
- How to override the Parent theme Function into child themes functions.php
- Overiding functions.php with child-theme
- Understanding child theme functions.php
- Website Broken on Activating Child Theme! [closed]
- Child theme implementation issues
- Add post dates from child theme and change font size on homepage post
- Child theme undefined variable error
- get_theme_mod is returning a number rather than my image file
- wp_add_inline_script not adding when script_loader_tag filtered
- the file placed in the child theme is not included
- Child theme grabbing wrong location fo parent theme files
- WordPress Child Theme PHP Code Change Issues
- Scratch theme needs to be a child theme, but for which parent? [closed]
- Will the use of a child theme create problems with commercial parent theme’s options?
- Linking to Child Theme PHP Files
- WordPress Bootstrap Problem
- Child Theme disable customizer defaults
- Which header is served
- Child theme problem
- Undefined functions on the server
- Changes to child theme are not visible on my site [closed]
- How do WP child-themes work? [closed]
- Is a Child Theme required?
- Moving from parent theme to child theme without losing configurations
- can the footer be included on a child theme
- How change child theme’s boxed layout to fullwidth in genesis? [closed]
- javascript not being enqueued correctly
- Fatal error and use of undefined constant in child theme unless I redefine it
- CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]
- wp_get_current_user() and is_user_logged_in() in child theme’s functions.php file don’t work
- Trouble translating a Child Theme
- Child theme with flatsome theme crashes website
- Customize file on inc folder on child theme
- Proper way to show admin bar in HTML5 Blank theme
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- I want to edit it on my laptop as a child theme and transfer the files to my server. I don’t know how
- Adding function from parent theme to child theme
- Translated words not showing child theme
- How to create a non-responsive WordPress Theme Using Genesis Framework?
- Correct way to customise a child theme
- Stylesheet overriding in Child theme
- Modify Twentyeleven child theme CSS – How to change body font size?
- How to enqueue stylesheets in child-theme functions.php?
- Child theme stylesheet not reflecting the changes
- Best way to edit/change comment-template.php without changing the core
- How to stop customizer settings inheritance from parent to child theme?
- Making a child theme in order to update the parent theme
- change html and css in template files in child theme
- My Child Theme CSS Isn’t Working
- Why does my child theme’s enqueue of styles mess up the order of script enqueues from the main theme?
- Where can I edit/see the HTML of this WordPress free theme?
- Enqueuing multiple stylesheets with a child theme
- menu, header and footer is not shown in the appearance after creating the child theme
- The parent theme is missing. Please install the “bp-default” parent theme
- Calling Category name without the link
- When I change some content in function of template-tags file in inc folder then its not working and show same as loke before
- Child Theme Issue – activated but does not show in preview
- How to configure folders with ‘Child Theme’?
- Remove HTML from search.php of my parent theme
- Child theme only loads on home page
- Vague Errors from VIP Scanner Plugin
- How to handle a large child theme
- Child theme css not loading when declared in parent functions