Minimatica style "cascading" into wp-admin/index.php

Viewing 8 posts - 1 through 8 (of 8 total)
  • #3468
    steadwell
    Participant

    I’m on a network installation and have a few themes in use within the network. I’ve noticed that the Minimatica theme is influencing the initial dashboard page in the admin panel by it’s CSS styles. I noticed this after the last WordPress upgrade but it may have been an issue before that. Has anyone else had this situation?

    I’m digging at it from my end and will reply if I find anything. Any insight on this would be greatly appreciated.

    Thanks in advance!

    #3473
    wasicu
    Participant

    I have the same issue since update to wordpress 3.3 just on index.php. I’m not working on a network installation. List are with disc, table have border and recent comments form the admin are the same as mimimatica’s comments.
    I think could come from the enqueue_style way. I’ll look deeper in the codex.
    Let me know if you find something.

    #3474
    wasicu
    Participant

    Ok I got it. Just edit your functions.php and replace wp_print_styles by wp_enqueue_scripts in the function minimatica_enqueue_styles() add_action().

    Found it there : http://wpdevel.wordpress.com/2011/12/12/use-wp_enqueue_scripts-not-wp_print_styles-to-enqueue-scripts-and-styles-for-the-frontend/

    Looks better now.
    Enjoy WordPress and Mimimatica
    Thierry

    #3476
    steadwell
    Participant

    After reading the background related to this fix, it looks like developers have pushed the formal fix down the road and altered the status to a lower urgency, understandably.

    The fix mentioned in the above link worked in my case, however, I created a child functions.php which consists of only the “fix” in addition to the change in the parent function. I would like to be able to “override” the original parent function instead of mirroring it, in order to preserve the original parent functions.php. Being that I am a student when it comes to php and how it is used by wordpress, this is a good lesson for me but any pointers would be appreciated.

    BTW, thanks wasicu for your help!

    • This reply was modified 12 years, 11 months ago by steadwell.
    #3497
    ramon fincken
    Participant

    I wrote another solution a week ago: http://www.mijnpress.nl/blog/remove-minimatica-css-stylesheet-from-wp-admin/

    It disables the stylesheet loading while in admin (is_admin())

    #3498
    wasicu
    Participant

    @ Ramon : Yes, it’s good if the next mimimatica version would not care about wp_print_styles() but to use it in a safe way, you have to use a child theme or ? If not, your functions.php would be overwrited with an theme update. (Like my solution without chidtheme for sure)

    #3499
    ramon fincken
    Participant

    Indeed, if that is not taken care of , you should try to create a functional plugin which disables the loading on init.

    #3501
    steadwell
    Participant

    I’ve got both of your fixes in place as a precaution in the original functions.php gets over-laid.

    The problem is fixed for me, for now anyway.

    Thanks wasicu and @Ramon for your input!

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

You must be logged in to reply to this topic.