The function wp_enqueue_style
last argument is the $media
and you set it to true so its mean you are doing
<link rel="stylesheet" ... media="1" />
$media (string) (Optional) The media for which this stylesheet has been defined. Accepts media types like ‘all’, ‘print’ and ‘screen’, or media queries like ‘(orientation: portrait)’ and ‘(max-width: 640px)’.
Default value: ‘all’
So you should or remove the last argument so it will be the default all or just set some other media type.
wp_enqueue_style('arena', plugin_dir_url(__FILE__) . 'css/arena.css',
array(), filemtime( WP_PLUGIN_DIR .
'/PluginName/css/arena.css') );
Related Posts:
- Is it ever okay to include inline CSS in plugins?
- Load js/css files only on specific admin UI pages
- Get list of scripts / styles and show file which enqueued them
- Dequeue theme stylesheets but keep widget styling on custom page template
- is_page() function doesnt working
- How to avoid loading same script twice?
- Gutenberg blocks not getting styled on back end
- What is the proper way to include Bootstrap when executing a shortcode
- How to enqueue style in WordPress plugin from theme files?
- CSS not affecting widget output
- Plugin Development – Class Constructor Not Firing wp_enqueue_style action hook
- Custom Plugin – CSS works, JS doesn’t
- Enqueuing scripts and styles in custom plugins
- How to enqueue scripts in right way in a plugin?
- Why enqueue styles on hook?
- How to check via conditional tags for a single plugin page?
- How to make my shortcode load scripts and styles, from within the plugin?
- Enqueue a file that’s not js or css
- Enqueue ONLY Plugin Styles and Scripts
- CSS not being applied using wp_enqueue_style
- Creating a WP plugin and having issues linking CSS stylesheet within functions
- plugin css is not being applied to the page
- 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?
- WordPress-child problem with many css files in parent theme
- How to only Load scripts on variable products page
- How can a plugin create a page/form in the front end?
- How to add Request header in WordPress remote api calls
- Init action hook running late after PayPal’s return url?
- Get specific color from admin color scheme
- wp_remote_get doesn’t work with secure connections https?
- How do you create a custom edit.php / edit pages page
- Edit the output of wp_widget_rss_output()
- Why are two functions over-riding each other?
- how to set context in WordPress for unit testing
- Should I ask my Twitter plugin users to create their own Twitter App and API Keys to use my plugin?
- Support auto-save and revisions for custom fields
- Gutenberg – What is the best way to save/update post meta?
- WP_Query with tax_query, order by most ‘matches’
- Using the Settings API, how should I add multiple values to an option?
- WP custom menus error > menu name already exists?
- Plugin updates, version dependencies, and backwards compatibility
- Where and how does WordPress store and use its plugin and hook information?
- Cache directory needed for plugin
- How to sanitize user input?
- Remove Internal Style Sheet if no Value Provided?
- WordPress after content Hook & external template part
- Storing product price data in the database
- get_query_var not works
- Correct check for any admin page with editor
- modify wordpress default search
- “import declarations may only appear at top level of a module” when importing WooCommerce API node module
- How to perform a heavy and long process in cron jobs?
- Woocommerce extend tax report with custom column
- Hook into Jetpacks Publicize without using a post type
- How to limit number of number of categories displayed by categories widget
- Dynamically creating classes for Widget API
- Is it necessary to do validation again when retrieving data from database?
- How to add new options to my WordPress plugin
- Using WordPress PHP code, how to bulk delete only 100 subscribers at a time from thousands of users?
- Creating an empty page programatically
- Multiple API Endpoints (wp_remote_get)
- plugin_dir_url & plugin_basename not working when plugin dir is outside wordpress dir
- How to replace default comments with custom HTML?
- Invalid hook call on save, not edit when using swiper slider
- Call to undefined function is_home() or any conditional tags
- WooCommerce Endpoints content
- Make dynamic string translatable
- wp_schedule_event is registered but function isn’t running
- Simple plugin don’t display content
- Cannot output plugin twice with shortcode
- How to make an admin plugin menu page go full screen?
- It is possible to pass $args that sent by add_settings_field() inside another function?
- Gutenberg – Call google map render function in save after DOM has been rendered
- Woocommerce get_term_by() in transition_post_status hook doesn’t works
- Home page is not loading, where in other pages are displaying on the site
- Custom table / Alternative to WP_List_Table
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- Adding Amchart Interface to WordPress API
- WordPress with React: Saving and Using Data Collected with fetch
- Don’t print customizer styles when no setting has been used
- bindParam? WordPress 4.9.5 SQL LIKE statement %s and %LIKE%
- tweaking the
- Plugin with functions inside a class & how to trigger WP CRON
- User Registration Moderate
- external Integration with wordpress timeout error
- add_settings_error on validating plugin options API
- Implementing Select2 plugin into WordPress
- Problem to return more than single line captions
- Unable to show a message after plugin activation
- Use plupload to upload images and save them to custom folder and database table
- How to add conent (text) to Add New pages form of admin in WordPress
- Can I access WordPress API’s from within plugin scripts?
- Is there a way to make is_search() always return false
- Ajax url value to pass ‘variable’ to use in query
- Apply Filters Causing a 500 Internal Server Error
- How to do searching based on keywords added in page
- Open media box library from link
- Using tag or inline style attribute?
- remove () from category number [closed]