wordpress , problems with text blocks, they dissapear

yasirshailkh

New member
Dec 5, 2016
2
0
0
Visit site
I'm a beginner in wordpress, recently I installed the dokan plugin for my online shop, gave me problems and I read that the solution was add this code

add_action('wp_enqueue_scripts', 'mgt_dequeue_stylesandscripts',99);

function mgt_dequeue_stylesandscripts() {
if ( class_exists( 'woocommerce' ) ) {
wp_dequeue_style( 'select2' );
wp_deregister_style( 'select2' );

wp_dequeue_script( 'select2');
wp_deregister_script('select2');

** } }**

I am using the handy store template, so I put the code in the file "function", when I use this function, the text-blocks stop working, literally they disappear, and when I remove the code they come back again, how could I solve it?

the above problem was that I had errors when uploading banners and photos.
 
Last edited by a moderator:

Members online

Forum statistics

Threads
324,237
Messages
2,245,216
Members
428,179
Latest member
joshi