CSS classes in plugins come straight from the plugins. It’s safer to add CSS to a child theme (or your current theme’s “Custom CSS” area if it has one) targeting the plugin’s class. If you edit the plugin files, anytime you update the plugin, your changes will be overwritten.
Please note, the Edit Theme functionality is also rather insecure and is best turned off. It too suffers from the same issue – if you make changes directly and then update your theme, your changes are lost. (And it’s important to keep plugins and themes up to date as updates often contain security patches.)
Related Posts:
- What is the correct way to use WordPress functions outside WordPress files?
- How to add product in woocommerce with php code [closed]
- What’s the best way to use the Featured Image for responsive web design?
- Hide php Notices in Dashboard
- How to correctly submit a search form and display the result in an independent page
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Shortcode to insert
- What is the most efficient way to search users by their display name?
- How to change featured content to a different tag in WordPress Twenty Fourteen?
- Using Echo in ShortCode – Stuck
- Get used terms by an author as array of strings
- Two posts in same div – WP loop
- Compare two meta key values against each other inside the get_posts array?
- Multiple do_shortcode($content) within one shortcode
- WordPress menu deletes when trying to add a hook
- Making Quote Plugin more efficient
- Different database query in function.php using mysqli
- How to show only a certain part of the entry title?
- Programmatically add and remove woocommerce product category
- allow subscribers to see private posts without plug in
- Get image’s size name from it’s dimension
- How to securely provide a $_POST var in WP_Query with PHP 7?
- If Query In Sidebar
- Unreadable pagination
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- wp_enqueue_scripts leads to error
- My page.php shows the index.php
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- How create a Shortcode with hover and complex options
- WordPress SQL injection
- Plugin Generate Unexpected output during activation
- Function returns text instead of html [closed]
- How can I display a div ONLY if it is not a certain term page
- Next post link on a bootstrap button
- Echo title attribute php
- how to serialize() mysql update data
- How to render a block from php template
- Output: “Array”
- How to add data to a custom field at the wp_users table?
- Calculate days between two custom field value dates
- Using rules in Posts
- How to make a cookie be on the whole site instead of being on a specific page/
- php – Plugin/theme relative PATH/URI
- Save the value of a wp_dropdown_pages
- Search only working on front page (index) , not working on other pages
- Live search from database table
- wpdb getting avatars and author url
- Unset all main menu items except those with $menu_object->title == ‘x’
- Deleting records with AJAX, deleting records as I search
- Create ACF Checkbox to get all ACF Values from Parent Page
- How a HTML form can trigger a PHP function?
- Custom Login page, redirection and restrictions
- Display custom field value in woocommerce variable product via jQurey
- get orders of today’s date
- foreach not returning expected results
- Passing Current User ID into SQL statement
- Load WordPress core but with specific plugins
- Change user metadata on registration (show_admin_bar_front = false)
- ACF – Get ID of relationship field in flexible content
- Why the responseText containing those two arrow signs at the beginning
- Return newly created category by code
- Pulling Products from an API
- Automatically delete posts one by one depending on published time
- Meta Box clears saved field content
- Woocommerce remove menu item on myaccount dashboard
- Hook into all password resets in WordPress and get password before hashing?
- WordPress select query issue
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- Dropdown menu on custom menu
- Pagination in WP Queries
- woocommerce plugin bugs
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Display product_brand with get_the_terms function
- Getting most popular posts based on Facebook comments count
- WordPress get_post_meta issue
- Woocommerce Price Text
- Display pages from specific page template
- If Elseif Query
- Querying multiple meta_keys in WordPress SQL query
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- How can I print out a single stylesheet or javascript link?
- Cannot Upload Custom Header Image into WordPress Dashboard
- wordpress featured image
- Generating a number based on post ID
- Add comma between variables [closed]
- Ajax Load More or View More functionality for woocommerce category layout by template overriding
- echo vs output variable [closed]
- Disable Typed Parameters for JavaScript in PhpStorm? [closed]
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- Losing Session ID and sessionStorage when navigating to other domains on Multisite
- Contact form with dynamic dropdown and filter
- Critical Error customiser
- Dynamic Email Handler with ‘header (“Location: …’
- Grabbing value of input field inside of array
- Implement OAuth2 in custom plugin
- login redirect based on user role not work as expected
- Count custom posts type and filter by tag
- Error with PHP 8
- How to create a User Role and give permission to only use Web Stories plugin?