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?
- Custom Widget function in Plugin not working?
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- Load js/css files only on specific admin UI pages
- Get list of scripts / styles and show file which enqueued them
- Widget development – Drop down options won’t save
- Calling the widget id of a mult-instance widget from inside the widget?
- Is There A Hook To Process The Content Of The Text Widget?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Help adding image upload functionality to widget
- Using preg_replace to clean widget output HTML
- What is the best way to provide plugin users with a way to customized the styles
- Script to remove all inactive widgets?
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- Using Ajax call in jQuery doesn’t work in widget
- How do I register a stylesheet inside a WordPress widget?
- Using $wpdb object in a widget
- Is there a need to do apply_filter(‘widget_title’, $instance[‘title’]) or any other ‘widget_xxx’ filters?
- How to pass custom options from widget form to widget update callback?
- Tips for targeting widget dragable for WP Pointer on widgets.php page
- How to display a value from a radio button in the options menu in wordpress
- PHP 7 – Class Method Compatibility Issue
- How to save WP widget instances and options
- Remove Internal Style Sheet if no Value Provided?
- Sidebar widget to show popular post not working?
- Widget update function not saving values
- Add custom element ID depending where the widget place is, sidebar or footer
- Missing sidebar parameter “fix” – before_content
- Gutenberg blocks not getting styled on back end
- Plugin CSS not enqueing
- What is the proper way to include Bootstrap when executing a shortcode
- Correct check for any admin page with editor
- How to check if a WordPress core block is active in sidebar
- 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?
- 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
- 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
- Distributing Frontend Assets with Plugins
- My stylesheets are not enqueuing
- Enqueuing scripts and styles in custom plugins
- Apply styles to blockquote element with the WYSIWYG editor
- Styles don’t load correctly. Insecure content
- Enqueue a file that’s not js or css
- How to make home widgets appear horizontally
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- A function that will remove HTML and tags from a string?
- WordPress dynamic widget by location?
- 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
- How to show multiple instances of the WP125 Widget?
- Why my theme’s css not working on another site
- WordPress plugin development theme issue
- 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?
- 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
- 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
- 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
- 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
- How to get html tag ids from template?
- Detect each active instance of a widget
- How do I create Widget within plugin that uses its own class?
- How do I get shortcode, widget and template tag CSS to load in the head only as required? [duplicate]
- How to only Load scripts on variable products page
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?
- How to create a “Most Popular” & “Latest” TAB in WordPress