How to remove query string from static resources

It looks like you are using JetPack’s Photon which adds query strings to your URLs. According to this thread there is no way to remove them https://wordpress.org/support/topic/how-to-remove-photon-query-string?replies=2 If you want to get rid of the query strings I would suggest deactivating photon, using a CDN which does not add query strings, and using the snippet … Read more

How to get a URL parameter from a URL with get_query_var?

I managed to find a solution with some help from some developers at the theme.co apex forum. I needed to get two query strings from my URL www.randompage.com/tokensuccess/?token=token&username=username called token and username. In order to get this I added the following code to the functions.php code: function add_query_vars_filter( $vars ){ $vars[] = “token”; $vars[] = … Read more