Question
I'm using a theme-specific, custom hook to add some custom attributes/values to the page's <body> element. There are however pages on my site that use a template that do not have that hook available and for certain reasons, I cannot ...
0
, 3 months 0 Answers 46 views

Question
I have 2 pages that are identical in my dev and production environments (http://wordpress-310389-952347.cloudwaysapps.com/2020/08/17/benelinx-qa/ and https://www.benelinx.com/2020/08/17/benelinx-qa/ respectively). If you inspect the page, you'll see that the values of the class attributes in the body tags are different between ...
0
, 3 months 0 Answers 56 views

Question
So, wp_localize_script() are awesome to add custom data to a script. And these data gets added to the HTML like: <script id='woocommerce_some-js-extra' type="text/javascript"> var wc_some_params = {"key":"sdfsfsdfs","use_iframes":"1","images_dir":"https://dadadasdad.com/wp-content/plugins/woocommerce-some-gateway/assets/images"}; </script> This is all good. But the problem is that if I want to add an extra ...
0
, , , 3 months 0 Answers 56 views