How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
My parent theme’s style.css has a dependency on bootstrap.css, which is also part of the parent theme.
My parent theme’s style.css has a dependency on bootstrap.css, which is also part of the parent theme.
First, sorry my english. I am using Local by flywheel to manager my site files and my wordpress version is 4.9.4.
What is the best way to link to a CSS file in WordPress?
I am creating a new theme, I created a new directory called mytheme and created three files directly inside the directory where the content is as follow:
index.php
I’ve created a plugin for my child theme, in which custom functions are stored. Additionally, within the plugin, I’m also enqueueing stylesheets and .js which control the output of two templates, for a custom post type named workshops. (The only place on the site where the enqueued styles and .js are needed.)
I am making my first plugin. I create a folder in wp-contentplugins
, create a test.css and a test.php file.
This is in the template file:
Normally, I would hook into the wp_enqueue_scripts
action in order to gather a list of enqueue’d scripts and styles.