You can remove the Query Strings using this code in your functions.php
function _remove_query_strings( $src ){
$parts = explode( '?', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_query_strings', 15, 1 );
add_filter( 'style_loader_src', '_remove_query_strings', 15, 1 ); //not need to in your case since it's for the CSS files
Related Posts:
- How to get “string” away – replaced with “nothing” [closed]
- Change admin_title of a plugin using code snippet/functions
- Customizing gallery shortcode in 3.5
- What is true chmod for WordPress?
- wp_trim_words() does not trim the_content() in WordPress
- Can You Export Theme Settings From WordPress Multisite?
- Adding Custom Fields to WordPress Comment Forms?
- Gallery Shortcode: using link attribute to link to a specific image size
- Any Hook Called When Post Becomes Published?
- Automatically wrap post image in div
- How Can A Widget With Only One Instance Be Defined?
- Getting $comments outside the comment template
- get_theme_mod(); returns nothing
- Limit comments displayed on basis of user_id
- Find and replace domain name on the fly?
- What is the most idiomatic way to let clients edit phrases in HTML?
- How to Register and Display Widget for Custom taxonomy
- How to change “Dashboard” text in wordpress
- WordPress Template not affecting the working, keeps defaulting to the index.php template
- Custom Widget form function common elements
- Image Editor does not affect custom sizes!
- How to display post title & excerpt when mouse hovers on an image?
- How to fix the IE9/WordPress Twenty Ten Header Image Display Problem?
- Unable to display custom fields on WooCommerce product pages
- Make blog secret during design construction
- Admin Panel – Custom Menu Sub-Item LINK
- add JS to multiple plugin admin pages
- Query posts by category AND custom field, then ORDERBY another custom field – help!
- Adding custom styles to dropdown in editor
- Add custom user profile field to default WordPress MultiSite registration form
- Is there a way to dynamically get to your uploads folder?
- Updating Existed RocketTheme Theme on WordPress
- how to add custom css and js on wordpress post editor directly without using .php file
- Custom attachments styling in post view
- Follow me for WordPress blogs (multi-authors)
- Pagination Issues using WP_Paginate Plugin
- adding multiple custom columns to users.php
- window resizing problem
- Create membership number for existing/new users
- URLs and navigation in custom themes
- How to move wordpress to subdomain, keeping only .htaccess and/OR index.php in root domain?
- Get Image from Media Library with the Title
- Gutenberg block outputting JSON in front end – is this normal?
- Load MediaPlayerElement after Infinity Scroll loads more posts
- Allow a Widget to be used one time only?
- Custom link for wp_insert_post
- Hide text if not homepage
- Best way to allow overwriting images shipped with the plugin?
- Static Front Page settings – distinguish between Front page and Post page
- How to format text of site subtitle
- Lost password and back to blog in same line
- Undefined variable: user_id in get_user_meta
- Customizer JS API get value of customizer field
- WordPress broken after domain name change
- How to create “custom page types” with different custom fields in them?
- Daylight Saving Time adjustment
- How to Restore Deleted Post Not in Trash
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Hide content and functions from specific user roles
- How To Style Links in Content Area With Tag Automatically?
- Translating (WooCommerce) placeholder text
- Display content of metabox if filled in
- User profile Pick a premade Design/theme
- Recent activity query WordPress
- Echo the Last Child Taxonomy only (not parents)?
- Troubles about insering a POST with a SQL query, post_status
- Embed Latest Track (Dynamic Updating) SoundCloud
- Get All Results From Other Users That Share The Same Custom User Meta As Current User
- Can we set a redirection with dynamic content in url?
- website is not loading home page (moving from one server to another server)
- How to remove (…) from the post tilte on homepage?
- Swap home page based on user role, Elementor layout breaking
- Customized Blog/Latest Posts Page
- How can I setup a development environment which auto refresh page when code have changed [closed]
- Password Protection issue
- Change Dashboard menu position?
- Get site ID from attachment url?
- how to edit or remove the dashboard footer message [duplicate]
- duplicate featured image functionality in custom meta box
- How to automatically pull an information from a form field onto an other page?
- How to create a custom menu for specific user
- How to submit form data in the same page in WordPress without reloading the page?
- Translate site in own text-language [closed]
- Pull A Single Post Prior To Running wp_query
- How to work around the bug which prevents custom menus from being deleted?
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Create a folder if it doesn’t already exist
- Changes in comments.php in the child theme does not show up on the site
- How to remove the tagline from the HTML ?
- Custom table or form
- how to modify request to get_template_part()?
- How I can add blog in my magento site?
- Getting Custom Field value in WP_Query
- Adding Custom HTML/CSS/JS code in specific page
- Custom template not working for existing pages [closed]
- Adding Telescope / Meteor App to existing WordPress site
- Help needed renaming custom post
- User Query Multiple Orderby Clause
- How to display product variations on same row
- Create a page for each database table entries