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

  1. Aurélien Denis
    Posted 3 years ago #


    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


  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years 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
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic