That isn’t how functions.php
works in WordPress.
The functions.php
in your theme root directory is loaded into WordPress environment by default as long as your theme is activated. It’s used as a plugin to add features and functionality of your theme to WordPress. You should take a look at theme functions and including css & javascript for more info.
Besides that, the wp_enqueue_scripts hook is fired inside the get_header() which happens before you can require('Lib/dynamic-table/functions.php')
.
You can fix that by require('Lib/dynamic-table/functions.php')
inside the functions.php
in theme root directory.
Related Posts:
- How to override JavaScript files in child theme?
- Enqueue styles properly in a child theme and stylesheets location
- Is my child theme working properly
- WP .js script file not loading
- wp_add_inline_script not adding when script_loader_tag filtered
- How to enqueue scripts in order of Head section
- Cannot dequeue script in child theme
- javascript not being enqueued correctly
- Can’t seem to get javascript code working from child theme
- Child theme is not rendering parent and own javascripts (but css loaded properly, js not)
- Enqueuing multiple stylesheets with a child theme
- using a child theme, after enqueing my js file it is loading before jquery
- how to fix loading scripts in child theme?
- WordPress | enqueue_scripts in a child’s theme returns error
- How do I dequeue a parent theme’s CSS file?
- How do themes provide support for child themes?
- Preserving theme settings in child theme
- Is it possible to make grandchild themes?
- Cannot get Child Theme to load latest version of style.css
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- Why is the Child Theme Stylesheet Not Loading?
- get_parent_theme_file_path vs. get_template_directory
- Child theme does not overwrite parent themes style.css
- jquery script not enqueued in child theme
- How to use parent theme’s enqueue methods
- How do I override a parent theme’s language files with a child theme?
- Do all files in child theme override the parent?
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- get_template_directory vs get_stylesheet_directory
- Developing a childtheme, how to disable the parents templates?
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- When activating a child theme, what core settings have to be reset ie; Custom Menus etc?
- Hwo to turn off “get_parent_theme_file_path” in child-theme?
- Overriding parent theme file
- Enqueue more than two CSS styles in a child theme functions.php
- How are updates to the style.css file in child theme recognized?
- How do I set up a child-theme without using @import
- How to change default header image dimensions in twentyfourteen child theme?
- Adding or modifying in files of parent theme via child’s function.php
- Child themes & updates?
- Where to put custom PHP files in a child theme?
- Child Theme Path Being Ignored With wp_enqueue_scripts
- Why is “get_template_directory_uri” pointing to child theme?
- ERROR MESSAGE: Missing index.php—Child Theme
- How to make child theme ignore a parent themes template
- Conditionally load child themes
- Child theme style repeated
- bbpress change the word forum, topic, reply in the forum to another word I choose
- Adding tawk.to code just before body tag on functions.php file
- Overriding a parent theme folder in the child theme
- How do I override a sidebar that is registered in a parent theme when using a child theme?
- PHP loop that selects posts with a particular in-post option
- Child Theme Translations with PoEdit
- Specific custom child theme page
- Someone created a child theme, but I need to modify it to reorder content. How do I access the child theme?
- Child theme works in local environment but is not working on remote
- Tesseract child theme loads slow [closed]
- Confused about how to use wp_enqueue_style
- Localize strings for translation
- Add head and body function for google tag manager in child theme
- Child theme does not load all style
- Adding a title below the logo
- Can I add customizer sections in the Twenty Seventeen theme?
- How to create a parent theme for accesspress parallax theme?
- Can´t access child theme´s scripts dependencies found in parent
- Child theme not overriding ‘includes’ folder on server – on localhost it does
- How Child Themes Directory works for plugins?
- Modify a parent theme’s PHP file, and save in child theme
- Getting a list of the PHP files included to generate a page
- Show full post in category archive pages in twenty-nineteen theme
- Updating my WordPress.org version will cause my site to break… What can I do to avoid this?
- style.css of child theme is not overwriting parents style.css for .box
- Change Twenty Twelve’s comment form in a child theme
- Two stylesheets acting on one element
- Is the front-page.php template reserved in wordpress twenty twelve theme?
- Referencing parent theme image from child theme
- Page not found when trying to link to files in child theme directory
- How to load Javascript code or functions.php later in a child theme?
- Can I place “parent theme” inside a child theme folder?
- How to customize BuddyBoss Theme page header
- Why does using wp_register_style without wp_enqueue load and print CSS tags in the front-end?
- Change templates in a child theme
- template_include doesn’t work with child theme
- issue on creating child theme
- Remove Stylesheet by URL that has not been enqueued
- How to enqueue multiple style sheets into my child theme in wordpress (oceanwp)
- Swap SVG icons in child themes
- How to fix error message to edit sidebar widget text on a livesite childtheme?
- WordPress core jquery version file not loaded?
- How does a Genesis child theme understand that the Genesis theme is the parent theme?
- Child Theme Can’t Find Parent In a Folder
- Problems with child theme
- child theme showing all this extra information for following lines
- how can I re-utilize and class on a child theme
- Installation directory for WordPress and child theme
- How to include only modifications in child theme?
- What are some best practices for switching the child theme for a production site?
- Child Theme > Template
- wordpress every page returning 500 error
- How to add modified php in child theme?