WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Dequeue style YARP ? (3 posts)

  1. Aurélien Denis
    Member
    Posted 1 year ago #

    Hi,

    Just new yo to YARP and it looks very nice.

    I'm looking for a way to dequeue this CSS function in core-class.php :

    wp_enqueue_style( "yarpp-thumbnails-" . $dimensions['size'], plugins_url( 'styles-thumbnails.php?' . http_build_query( array( 'width' => $dimensions['width'], 'height' => $dimensions['height'] ) ), __FILE__ ), array(), YARPP_VERSION, 'all' );
    	}

    Now, I just add // in the code because wp_dequeue_style in functions.php doesn't seem to works (but not sure of what to do in fact).

    Anyone can help me? Thanks

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    wp_dequeue_style probably needs to run later. Probably binding it to the wp_print_footer_scripts with some low timing number, like add_action(wp_print_footer_scripts, 'function', 1) might work. (Seems like you're comfortable with PHP, so I hope that makes sense.)

    Note, however, that code is only being included because you're using the "Thumbnails" display option. Do you not want to use the thumbnails display? This can be changed in the YARPP settings.

  3. Aurélien Denis
    Member
    Posted 1 year ago #

    OK thanks. I'll check this later. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags