The notice is quite obvious. It is telling you that you are not running wp_register_style()
within the wp_enqueue_scripts
hook.
SOLUTION
Move your wp_register_script()
and wp_register_style()
calls to inside your function which is hooked to wp_enqueue_scripts
Related Posts:
- Why is style.css not being enqueued?
- How to enqueue style before style.css
- How do I register/enqueue a custom CSS file?
- Load custom css after bootstrap
- The correct way to include JavaScript and CSS in my WordPress Themes
- How can I remove css from a child theme?
- Relative path in wp_register_style not working
- How to Add Custom CSS to the Media Thickbox?
- Style file inclusion
- Dequeue styles with query doesn’t work
- How to disable all css from the theme for a specific post type page
- Which hook to use to add notification message at beginning of my
- Customize Bootstrap checkboxes
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- css transition opacity fade background
- Text-decoration: none not working
- CSS display: inline vs inline-block
- Aligning two divs side-by-side
- CSS transition shorthand with multiple properties?
- Is there an opposite CSS pseudo-class to :hover?
- Using custom fonts using CSS?
- How can I transition height: 0; to height: auto; using CSS?
- Display Images Inline via CSS
- Why CSS3 Animation is not working?
- Why is my Bootstrap code not working?
- How to make canvas responsive
- How to change version of .css in WordPress?
- Disable SSL / HTTPS for wordpress
- Forcing reload of editor-style.css
- How can I make the wordpress editor apply the selected template?
- How do I remove specific styles from the parent theme css using the child theme css?
- What CSS rules are introduced to core blocks through wp-block-styles?
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- Trying to load a responsive CSS media query using Custom Taxonmy
- How do I add a class to that is generated by >
- How to add a body class to all interior pages except the homepage
- add a CSS id to the body of a page in wordpress
- wordpress CSS styles – footer border do not show
- Can I use theme options to change two things at once?
- wp_head function causes 30px blank space [closed]
- get_stylesheet_uri returns wrong path
- Include print style sheet
- De-registering a CSS file leaves it in the queue
- How To Load Different CSS Style, Based On Language When Using QtranslateX [closed]
- How does W3 Total Cache Load Images In Stylesheet via CDN? [closed]
- images within style sheet
- IE and WordPress
- Child theme stylesheet not always overriding “index”
- Alternate stylesheet only works with absolute address for link?
- Child Theme CSS not showing at all
- How to create an optionally available stylesheet for visually impared users?
- Image getting out of container [closed]
- Why is my child theme style.css not found (404) in the front-end? [closed]
- functions.php – inject inline css from file
- Changing navigation strip color with CSS
- child theme appears again when I put the header with parent name.
- How to Add a Read-only Textbox With Text in it That Has a Button to Copy it?
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Use Google Fonts and unicodes
- Conditionally print css style in WordPress
- Adding elements to wp_list_pages (within , but before )
- WordPress is not displaying CSS file
- Page versus post ID specific CSS ID?
- Why doesn’t WP recognize images in posts like other content? [closed]
- Customizing the Post/Page Editor in Classic Editor
- CSS for the main top menu appears to have stopped working after All-In-One Migration transfer
- Css will not display in webpage, after adding it in style.css in child theme
- wp_list_pages two columns
- TinyMCE on frontend style not working
- Bootstrap Integtration
- H2 On Blog/Article Page Gets Assigned a Class
- HTML not resizing
- CSS transition from 0px width to 100% width
- Style not being applied to newly installed themes
- Custom CSS rule overridden in theme
- Style sidebar for a custom page template exclusively
- Make Responsive Specific Page in WordPress
- Sticky Button not working WP. But does it JS Fiddle
- How to get homepage div container of wordpress website to display full width? [duplicate]
- CSS in child theme to replace !important in parent theme
- WP theme update causes child theme CSS problems
- Wesbite super slow on iphone / very fast on desktop with same connection on wifi
- adding a favicon to site2 – site1/site2/favicon.ico
- WordPress crop image not working [closed]
- Which files can be replaced in a child theme?
- How to implement styling of div in the front end using plugin admin meta box settings?
- Browser stacks different versions of style.css
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- CSS messes up when CACHE is cleared
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- MY CSS FILE IS MISBEHAVING. IS NOT WORKING WELL ON MY WP SITE [closed]
- Image is very blurry
- how to change the colour of this background
- How to remove class=”wp-block-heading” from Heading tags?
- Website is not showing updated CSS