I have several different pages. Every one of them has different css links. Rather than the css links all items are same in the head element of those pages....
I am using Font Awesome on my theme. wp_enqueue_style('fontawesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css'); I am using another plugin that uses Font Awesome, but its using an old version. wp_enqueue_style( 'fontawesome', '//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css', array(),...
I read that I should insert my style.css file in my theme through the wp_enqueue_style() function because it’s not a good solution to add that file through a link...
Is there anyway to load a custom style in specific taxonomy pages? for example these two pages: wp-admin/edit-tags.php?taxonomy=news-category&post_type=news wp-admin/term.php?taxonomy=news-category&.. I added a style to admin but other pager got...
I’m wondering what can I or should I NOT hook to after_setup_theme? I’m wondering because I have been told that I shouldn’t hook wp_enqueue_style to it, but I have...
According to the codex, when creating a child theme, you have to manually enqueue the parent theme’s scripts. My parent theme has logic to conditionally display various css files,...
I have a form where i would like to add a datetimepicker(). I must be doing something wrong. I have done the following: In my header.php <?php wp_enqueue_script("jquery"); ?>...
As I told in an earlier question is have a theme with hundreds of mods, which I gather in one mod so I don’t have to loop through all...
I am exploring how to build a theme where most of the pages are loaded using the Rest API. I can load the index page and from there make...
I am creating a child theme. I noticed my parent theme is adding some inline CSS in its functions.php: wp_add_inline_style( 'persona-style-css', $custom_css ); Since I cannot change some values...