• Resolved j_schumann

    (@j_schumann)


    WP Version: 5.6.1
    Used NGG Version: 3.6.0

    Hello!

    The deprecation of custom styles caused me to move the styles that currently reside in ngg_gallery.css to the theme CSS or the custom css in the WP customizer, as suggested in the deprecation notice: https://www.imagely.com/docs/styles-tab-deprecation

    But this does not work (at least for me), as NGG disrupts the CSS order by moving some plugin styles (not only his own) to the end of the <head> (see nextgen-gallery/non_pope/class.photocrati_resource_manager.php, function move_resources(), which ignores any WP guidelines and theme’s header.php by manipulating the output buffer).

    This function moves the CSS files included by Nextgen (and also other plugins like Tribe Events Calendar) to the end of the <head> while other CSS output by wp_head() stays at the designated position. That makes it impossible to overwrite NGG styles in the theme css or even with the customizer.

    How is this supposed to work, I don’t think this can be the default on all WP sites as other people must have stumbled over this before? Also using the customizer is the suggested way so it should work?

    Thanks in advance,
    J.Schumann

Viewing 1 replies (of 1 total)
  • Benjamin

    (@benjaminowens)

    Hi @j_schumann

    Defining the following should fix your problem. We intend to remove this entirely soon so it won’t be necessary.

    define('NGG_DISABLE_RESOURCE_MANAGER', TRUE);

Viewing 1 replies (of 1 total)
  • The topic ‘CSS order mixed up by NGG’ is closed to new replies.