Я уже некоторое время смотрю на следующее https://wordpress.stackexchange.com/questions/120062/how-to-automatically-add-and-showopen-all-the-product-attributes, и мне очень трудно знать, где разместить код, поскольку я не могу поместить его в функции своей темы:
function wpa_120062_scripts(){ ?> <script type="text/javascript"> jQuery(document).ready(function($) { $('.product_attributes > div').removeClass('closed').show(); $('#product_attributes a.expand_all').click(); }); </script>
Кто-нибудь, кто может мне помочь с этим?