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
- Custom single template for a specific category
- How to load Widget javascript + css files only if used?
- Twenty Eleven home page show only excerpt
- Snippet: Use classes instead of inline styles for text alignment
- Resources for a complete beginner to learn to work professionally with WordPress [closed]
- How to tell if the user is an admin?
- Removing title tags from each page
- Remove Cookies From WordPress Core
- WordPress empty Nav Menu error
- How to add a button which saves the post then executes a function
- Catagories to the list of the titles in that catagory to the content of the post [closed]
- Can I get the ID of an inserted / linked image?
- do_shortcode() in twentyeleven theme
- Why enqueue styles on hook?
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- using custom page
- Preview returns 404 in theme [closed]
- How to get DB options format without saving? [closed]
- Best way to declare product variables in woocommerce theme development?
- Adding a button to wp/aution plugin