Support » Plugin: Yet Another Related Posts Plugin (YARPP) » CSS messed up after update

Viewing 11 replies - 1 through 11 (of 11 total)
  • maryannk

    (@maryannkelley)

    I saw that, but I don’t care if the plugin stylesheets load. The order is the problem.

    Nope, that’s not the problem. The stylesheet should only load in the admin area to control the settings. So it’s a bug and bugs cause problems. I guess you’re not a dev and didn’t understand the connection. Plus you don’t want 2 extra HTTP request for 2 unnecessary files to slow down your site… a dev would definitely care about this.

    Hi there,
    I’m having the same issue since the update.
    My child theme css is no longer able to override YARPP’s css.
    I had to deactivate the plugin for now until I am once again able to modify the css in my child theme.
    Thanks for any assistance with this.

    maryannk

    (@maryannkelley)

    Not a dev – you are right that I don’t want the backend stylesheet to load on the front-end. But that isn’t the problem I was posting about. My problem is that related.css and styles_thumbnails.css are loading in such a way that !important in my theme’s stylesheet doesn’t override their styles. Has nothing to do with widget.css in my case. Those are the ones that I didn’t care if they load – I need the styling in them, I just need them to load in the proper order.

    To completely disable Yarpp’s related.css file, put this code in your theme’s functions.php:

    function DequeueYarppStyle()
    {
    	wp_dequeue_style('yarppRelatedCss');
    	wp_deregister_style('yarppRelatedCss');
    }
    
    add_action('wp_footer', DequeueYarppStyle);

    Use this code if you want to load related.css in the header instead of the footer:

    function EnqueueYarppStyle()
    {
    	wp_enqueue_style('yarppRelatedCss', YARPP_URL.'/style/related.css');
    	wp_register_style('yarppRelatedCss');
    }
    
    function DequeueYarppStyle()
    {
    	wp_dequeue_style('yarppRelatedCss');
    	wp_deregister_style('yarppRelatedCss');
    }
    
    add_action('wp_footer', DequeueYarppStyle);
    add_action('wp_print_styles', EnqueueYarppStyle);
    Plugin Author jeffparker

    (@jeffparker)

    We’re looking into these CSS issues. Thanks for your patience.

    thanx @stephane it works for me too 🙂

    @jeffparker why don´t just add a checkbox to mark if the css is load or not, that´s more easy I think.

    Plugin Author jeffparker

    (@jeffparker)

    We’re considering that for a future release. Thanks.

    i seemed to add those lines above but i still get some user agent style?? i’m just trying to edit the OL list style type to none..

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘CSS messed up after update’ is closed to new replies.