• Resolved Dan Stramer

    (@danstramer)


    Hello,
    Rather than using the buit-in style editor, I would like to use a style.css file to make changes to MMM.
    IS there an option to add a css file to my child theme with the changes I need instead of using the editor?
    Plugins usually allow adding a ‘[plugin-name].css’ file into the child theme to have any style overrides.

    Does MMM have this option?

    Thanks
    Dan

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author megamenu

    (@megamenu)

    hi Dan,

    There’s no option to do that built in, so you’d need to enqueue your stylesheet yourself using wp_enqueue_style().

    Regards,
    Tom

    Thread Starter Dan Stramer

    (@danstramer)

    Thanks,
    But how can I set that new style sheet to over-ride the plugin’s style?
    To give it priority after the plugin’s CSS?
    Is there a dependency?

    Dan

    Plugin Author megamenu

    (@megamenu)

    Hi Dan,

    You could either increase the priority of the function that enqueues your style or use “megamenu” as a dependency.

    Regards,
    Tom

    Thread Starter Dan Stramer

    (@danstramer)

    Thanks, that worked.

    Dan

    • This reply was modified 8 years, 1 month ago by Dan Stramer.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘use a stylesheet file’ is closed to new replies.