The problem was due to an incorrect file path in the movieposterdisplay-scripts file. Whilst the file loaded correctly in the main php file
require_once(plugin_dir_path(__FILE__).'/includes/movieposterdisplay- class.php');
as it already assigned the correct plugin folder name. It did not enqueue correctly as the code was wp_enqueue_style('mpd-main-style', plugins_url().'/movieposterdisplay/css/style.css');
and I had previously changed the folder name.
Hence I thought it was loading correctly and running fine, however it was only loading correctly.
Related Posts:
- Is it ever okay to include inline CSS in plugins?
- Dequeue theme stylesheets but keep widget styling on custom page template
- Widget is to be compatible with all themes
- How to remove default style of header in wordpress metabox
- Custom Plugin – CSS works, JS doesn’t
- Are there any official or unofficial guidelines for the styling of a widget?
- CSS not being applied using wp_enqueue_style
- How can I add the Post ID to Class Name in Jquery?
- Best practice to include custom user styles in widgets
- How to create A – Z List with pictures?
- How to enqueue style in WordPress plugin from theme files?
- Serve text/html from wp-json API via WPEngine, headers not being set properly
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- Widget Dropdown doesn’t working
- How do I get the sub categories of the parent when in a sub category?
- How to limit number of number of categories displayed by categories widget
- Input in plugin widget does not allow spaces
- Get draggable widgets on Edit Post page
- Dynamically creating classes for Widget API
- Widget options are not updated
- Why does my widget break other widgets?
- Using a multiple element in widget form
- How can I avoid conflicts between plugin and theme?
- Plugin Development/ Stop CSS clashes.
- Problem with saving checkbox values with WordPress Widget API
- Can’t change the style of a submit input type? [closed]
- Make a plugin page out of influence of the theme’s style
- WordPress plugin enqueue scripts working for js, but not css files
- Distributing Frontend Assets with Plugins
- My stylesheets are not enqueuing
- Plugin Development – Class Constructor Not Firing wp_enqueue_style action hook
- Enqueuing scripts and styles in custom plugins
- How to enqueue scripts in right way in a plugin?
- Why enqueue styles on hook?
- Create Widget or Enable Shortcodes in Sidebar
- Proper way to include stylesheet for panels
- How to check via conditional tags for a single plugin page?
- Apply styles to blockquote element with the WYSIWYG editor
- Minimum Widget Width for Plugin Development
- Images under 1MB are not being compressed
- How to change WooCommerce loop product title HTML output in single product page and archive page
- How to make my shortcode load scripts and styles, from within the plugin?
- Styles don’t load correctly. Insecure content
- Completely isolate a plugin view so it doesn’t load the theme
- How to create a wordpress widget that dynamically changes according to the page
- Enqueue a file that’s not js or css
- How to make home widgets appear horizontally
- Header Sidebar Won’t Move Lower – Want to Align with Header Logo [closed]
- Does WordPress default CSS have Grids?
- Best practice for Designing a Plugin with this scenario
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- A function that will remove HTML and tags from a string?
- How to insert HTML/CSS/JS into my iframe plugin?
- How To Protect Plugin Display From Being Affected By Theme’s CSS
- WordPress dynamic widget by location?
- Load stylesheet in edit category page?
- Enqueue ONLY Plugin Styles and Scripts
- Can / should a widget plugin define its own Widget Area?
- WordPress Plugin Authoring question about jquery and css
- How to exclude categories from get_categories() select list inside a widget admin panel
- Widget internal hooks and functions
- My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?
- How to show multiple instances of the WP125 Widget?
- How to add some basic inline CSS using existing plugin or theme?
- Font size of HTML content
- Console errors in 6.0-RC1 Widget screen
- Why my theme’s css not working on another site
- WordPress plugin development theme issue
- Error code when migrate
- Creating a WP plugin and having issues linking CSS stylesheet within functions
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- How does update method in Widget class saves $instance array from Select tag?
- Why does theme’s reset CSS have higher precedence of plugin’s CSS?
- Twenty-seventy theme remove additional CSS from head
- Drop down question
- I’m including a html file in my plugin, but it can’t find its css or js files
- plugin css is not being applied to the page
- Quick Draft widget (dashboard.php) using custom post_type
- Uncaught Error: Call to undefined function wp_get_current_user() in
- Load script on frontend from widget plugin
- How do I ensure I can loop through every enqueued script and CSS?
- How to avoid conflict if a plugin already have included open library?
- Can’t get wpColorPicker to work in a widget
- How do I show the HTML descrption in wordpress photo gallery for my individual gallery pages?
- If user is logged-in display/hide widgets ( siteorigine) [closed]
- Set widget icon in Customizer?
- How to customize the size of Featured Images or Post Thumbnails in WordPress?
- Creating a simple button inside of a widget
- How to embed or integrated a custom WordPress Widget into the theme?
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- Implementing Select2 plugin into WordPress
- Unable to link CSS file
- Widget won’t be activated
- Dynamic sidebar areas not working on the Theme Customizer
- widget: input the px value from user and use it as inline style in widget function
- Let user override plugin CSS
- WordPress-child problem with many css files in parent theme
- Downloading Generated XML File
- How to get html tag ids from template?
- Detect each active instance of a widget