Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
marius
tagDiv Member

Oh yes, I have seen it, thanks.. I dont think I am goind to use it beacuse it tells to remove some code, and I rarely mess with inside written codes, hell of mess finding them again if needed 🙂

But I am trying to google some solution where I with a code maby can tell the site to ignore the modal, and I have found this:

add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );
function my_deregister_javascript() {
$deregistered_scripts=array(‘wc-add-to-cart’,
‘woocommerce’,
‘storefront-skip-link-focus-fix’);
foreach ($deregistered_scripts as $key => $script) {
wp_deregister_script( $script );
}
}

And maby need to replace/insert something, and it is something with the arrays I belive, but what is the array for the modal lightbox thingy, do you know?

Best!

marius
tagDiv Member

But the general modal thing only works for single added images. I have tried to turn it of to avoid modal in some images, and I found in the single images I could turn them on/off, but galleries unfortunatly used modal no matter what. Maby there is a solution I havent seen?

Viewing 2 posts - 1 through 2 (of 2 total)