• Resolved godthor

    (@godthor)


    First off, great plugin. It’s simple to use, easy to setup, and does the job I needed. Also, the templating system is a nice touch and let me do exactly what I needed, which I appreciate.

    However, one issue with the styling. The default styles are so embedded in the plugin that making changes was a chore. In particular, this class .widget_neliofp_widget article is tied to everything, and I understand why, but there’s so many style widths that adjusting just the featured image size was a lot of work.

    The easy solution would have been to drop the <article> element, but of course I wanted to keep the schema.

    The easiest solution, I think, would be for you to allow people to enter in a class name into the widget, much like you do with template. That way I could define my own encompassing class that would replace the .widget_neliofp_widget class, and thus remove any default styling you’ve setup. If not value is entered then it would default to .widget_neliofp_widget.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi!

    Getting rid of the default styles is actually pretty easy. Just add the following snippet in your theme’s functions.php file (or, even better, in a custom plugin):

    add_action( 'init', 'neliofp_remove_default_style' );
    function neliofp_remove_default_style() {
      wp_dequeue_style( 'neliofp_style_css' );
    }//end neliofp_remove_default_style()
    

    and that’s it! You can now tweak the styles from scratch as you please ??

    Thread Starter godthor

    (@godthor)

    I don’t know why I didn’t think of that.

    Thanks.

    Plugin Author David Aguilera

    (@davilera)

    It’s alright—we’re here to help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Styling Issue & Suggestion’ is closed to new replies.