• Resolved steve

    (@davidsonsteve)


    I’m trying to put a menu in a sidebar widget, however it only seems to display correctly if the content of the post/page the widget is on has a menu shortcode in it as well. Without a menu shortcode in the content area of the page it just shows up as a plain unordered list. Is there a way to make sure the textbox widget that contains the menu shortcode uses the proper CSS?

    Sorry I can’t post a link, I’m setting up this site locally.

    https://wordpress.org/plugins/quick-restaurant-menu/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter steve

    (@davidsonsteve)

    I was able to find the Widget CSS Classes plugin that lets you specify a class for each text widget that seemed to do the trick after copying over the CSS from the erm-front stylesheet to the theme’s stylesheet.

    Probably not the best solution, as it won’t inject any custom CSS specified in the Rest. Menus settings page so all those changes will have to be incorporated to the theme’s stylesheet as well, so if there’s a better way to do this out there I’d definitely be interested in hearing it.

    Plugin Author Alejandro

    (@alejandropascual)

    The plugin is not prepared for using the menu in a widget yet, I’ll take it into account..

    Thread Starter steve

    (@davidsonsteve)

    Thanks again for your help and this really helpful plugin.

    For the two column people out there I was able to put the shortcode into a half-page sidebar with text widget, and shortcode from a second menu in the post area, and it looked and worked great with a few themes I’ve tried.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Widgets stripping CSS’ is closed to new replies.