esc_url is run on the stylesheet URL and that converts those characters. You can work around it with a couple of filters.
function style_params($src, $handle) {
if ('twentyfourteen-style' == $handle) {
add_filter('clean_url','alter_clean_url',10,3);
}
return $src;
}
add_filter('style_loader_src','style_params',10,2);
function alter_clean_url($good_protocol_url, $original_url, $_context ) {
remove_filter('clean_url','alter_clean_url',10,3);
$good_protocol_url = html_entity_decode($good_protocol_url);
$good_protocol_url = $good_protocol_url.'&abc=def';
return $good_protocol_url;
}
Related Posts:
- Why I can’t add a CSS style in this WordPress theme?
- The difference between calling wp_enqueue_scripts to load scripts and styles in custom theme
- What can I hook into after_setup_theme?
- Enqueued Stylesheets Effecting Admin Styles
- Is my approach to enqueue styles inefficient?
- functions.php not hooking up with style.css
- Adding google fonts to WordPress theme
- Find out the reason that the Styles and scripts in the theme are loading properly in localhost but Not in server after deploying
- Using wp_add_inline_style without a stylesheet
- How important is it to enqueue a theme’s stylesheet?
- Enqueue a stylesheet for login page and make it appear in head element
- How to enqueue script if widget is displayed on page?
- Is there a way to set the order of wp_footer hooked functions?
- Adding customizer styles with wp_add_inline_style
- What does “Do not deregister the jquery script in the administration area” mean?
- How do you enqueue script tags for ReactDOM in WordPress’ functions.php?
- Identifying the priority of style.css so I can make a small CSS file load last
- Get info (url) from already enqueued styles
- Adding inline styles from a widget
- The best way to add stylesheets to WordPress
- using wp_enqueue_script to attach jquery-ui
- Dequeue Scripts and Style for Mobile not working?
- Advantages of using instead of wp_enqueue_style()?
- How to add dynamic inline style?
- wp_enqueue_script being ignored in custom theme
- De-registering parent style sheet css recommended?
- Getting jquery to work with custom theme
- Is it safe to enqueue a font style without putting http or https?
- Adding wp_enqueue_media(); causes problem
- enqueue_style is not working
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- Dequeue a style file which is making website load slow!
- How to avoid loading same script twice?
- Including Javascript options
- Child theme style.css versioning
- Disable wp_enqueue_style for theme on wp-admin
- way to include own functions independent of theme
- How to To Filter wp_enqueue_script() Scripts on Some Pages
- How can I let templates choose which stylesheets are enqueued?
- Stylesheet not linking
- How to add Bootstrap Tour JavaScript to WordPress Admin Panel Dashboard Widget
- Difficulty loading jQuery with wp_enqueue_script
- jQuery not available to other scripts
- Theme Loading Into Dashboard
- How to check if a WordPress core block is active in sidebar
- Font Awesome 5 Free – far working but fas is not? [closed]
- Can´t access child theme´s scripts dependencies found in parent
- How remove render blocking css from wordpress when you build a theme?
- enqueue styles for only mobile wp
- How to modify default controls in WordPress theme customizer
- How to enqueue javascript for WP Customize options sidebar?
- filemtime(): stat failed warning within a child theme
- Enqueued JavaScript is not working
- How do I use a color from theme options?
- How to remove ID’s from wp_enqueue_style?
- Ideal inline dynamic CSS injection
- Overide enqueue in non plugable function via child theme
- How to register and enqueue JavaScript files without breaking plugin dependencies?
- How to include a file only on dashboard widgets page?
- Having issue with WordPress wp_enqueue_style
- How to fix : Uncaught ArgumentCountError: Too few arguments to function? [closed]
- theme style is applied on the dhasboard rather than the website
- Are there any caveats to compiling all of my theme’s SCSS into the style.css file in the theme root?
- How to enqueue a script which is type module without using script_loader_tag filter?
- Custom jquery not code not working in wordpress
- add jquery file if a certain page is included
- Advanced method to control cache of enqueued style/script
- how can i remove js file from my footer in wordpress
- Displaying front side empty with one file attached problem
- Test CDN link from function.php or wp_enqueue_script/style?
- Enqueue script for development purposes only?
- Using wp_add_inline_style Inside a Template File
- Correct was to customise theme using get_theme_mod in scripts
- how can I re-utilize and class on a child theme
- Different stylesheet for different pages not working fully
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- enqueue script if page is not equal to
- How to output wp_enqueue_style() in HTML head instead of footer
- Theme now uses require.js and enqueue script no longer works
- functions.php doesn’t load all custom theme assets
- Frontend Enqueued Files in the Backend
- Add custom classes to anchor in wp_nav_menu
- How to alter the text of the post “Excerpt” box label in WordPress post editor?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- How to Auto Approve Comments on a Specific Page?
- WordPress Errors in generated by theme check plugin [closed]
- WP CLI Get all Enqueued Scripts and Styles
- Why is the post type on the search result page random?
- get_option in header.php not returning value from customizer
- What happens to child theme if I change to new version of parent theme?
- Change Responsive Images Maximum Width of 1600px
- How can I hard code my sidebar?
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Filter to remove the default password on “Your Profile” page
- theme directory fallback image outputs url and not the image
- What is the general function to add a Widget area (not of a particular type)?
- How to manipulate wordpress template tags’ output
- WordPress Footer Widget Processing
- Mamp pro permalink issues. Pages keep reverting to index.php
- Turning WordPress Into full-featured website?