• Resolved Fabricio10

    (@fabriciobarros10)


    I need to remove dashicon from store pages to improve the site loading.

    only in stores, in others it can remain

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @fabriciobarros10,

    There is no default way to make the changes from the store page. But we can try to figure out a possible solution for you. Do you happen to have a screenshot handy that further illustrates what you are trying to hide? With your specification, I can try my best to offer possible guidance or solution for you.

    You can use https://snag.gy for easily sharing screenshots. You’ll just need to follow the instructions on the page, then paste the URL into this chat window. It works with Chrome, Firefox, and IE.

    Best Regards ??

    Thread Starter Fabricio10

    (@fabriciobarros10)

    I want to reduce the page size, it is not used and delays loading

    Hello @fabriciobarros10 ,

    Try this code in your theme’s functions.php file –

    add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
    
    function my_deregister_styles()    { 
       
       if(dokan_is_store_page()) {
        wp_deregister_style( 'dashicons' ); 
       }
        
    }

    Let me know if this does not work and share the file name which you actually want to remove.

    Thank you ??

    Thread Starter Fabricio10

    (@fabriciobarros10)

    @rur165 it works but the top admin bar breaks when I’m logged in and I enter the store page. If I enter the product it goes back to normal

    Hello @fabriciobarros10 ,

    This is a default WordPress script so it is supposed to break something when we are deregistering it from a specific page. As vendors or customers do not see the admin bar so it will not be a problem.

    We are applying it only on the store page with the condition if(dokan_is_store_page()) that’s why you do not see the problem on the products page.

    I hope this clears the confusion.

    Thank you ??

    Thread Starter Fabricio10

    (@fabriciobarros10)

    okay thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘dashicon’ is closed to new replies.