Youtube Feeder
[resolved] addHeaderCode() should use wp_enqueue_style to include style.css (2 posts)

  1. daymobrew
    Posted 3 years ago #

    In the YoutubeFeeder constructor add_action is called for wp_head to run the addHeaderCode() function. This function simply echos the html code to include style.css.

    This method means that I cannot apply my own styles - I have to edit the plugin's style.css and these changes will be lost at the next plugin upgrade.

    It should use wp_register_style() and wp_enqueue_style() - see the docs at http://codex.wordpress.org/Function_Reference/wp_enqueue_style
    This would allow me to call wp_dequeue_style() to exclude the style.css file and use my own styles.


  2. Andrew Ensley
    Plugin Author

    Posted 3 years ago #

    Version 2.0.0 is out which enqueues scripts and styles properly:



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Youtube Feeder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic