Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m also getting the same issue. Very strange.

    I am having the same problem. Has there been any workaround identified yet?

    <div id=”text-X” class=”widget_text widget amr_widget “>

    It looks like the plugins now add the above code for ‘Text’ widgets. I believe the IL and a bunch of other CSS that wasn’t previously being assigned is now being associated with the element.

    Does anyone know the PHP good enough to stop the plugin from doing this?

    The best workaround I have found is to build out new CSS for the amr_widget class.

    Manyspears, something like :

    .amr_widget {
    display: inline;}

    in your styles.css or wherever may work for your needs.

    Plugin Author anmari

    (@anmari)

    As a default the output should be picking up your sites first sidebars html definitions. Also the ‘widget’ classes could be picking up your themes css for widgets (as requested by many folks ?? )

    the classes “widget_text widget” are standard wordpress widget classes when calling the widget properly and varies obviously by widget. So it would help for example the calendar widget to pickup necessary clendar styling.

    For info on controlling this see https://www.ads-software.com/support/topic/your-theme-your-sidebars-and-the-plugin-overriding?replies=1

    Thread Starter manyspears

    (@manyspears)

    Thanks Anmari. I used the wrap=div command and it went away.

    It’s still a mystery to me how the .li style was called to begin with- my theme (Woothemes Hustle) doesn’t style its widgets that way.

    Plugin Author anmari

    (@anmari)

    Hi – it must have it somewhere as a default. I don’t use the ul anywhere in the code. I didn’t even have it as a ‘wrap’ option, so only place it could have got it from is the theme.

    The best workaround I have found is to build out new CSS for the amr_widget class.

    Manyspears, something like :

    .amr_widget {
    display: inline;}

    in your styles.css or wherever may work for your needs.

    Thank you Roth113 for the CSS fix. That fixed my issue with the li and also the block style.

    Plugin Author anmari

    (@anmari)

    For anyone else reading this, please not there are other ways to change the html that the plugin is getting from your theme. (or your theme defaults, which your theme may actually override in it’s various sidebars.

    Please read the description https://www.ads-software.com/plugins/amr-shortcode-any-widget/ – in particular the bit about the parameters:

    eg:

    wrap=htmltag where htmltag is one of div,p,main,aside,section. This will override your themes first sidebar html settings for widget wrapping html.

    The are also other helpful parameters so you don’t have to mess with your themes css.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugins adds weird .li styling to widgets’ is closed to new replies.