WordPress.org

Ready to get started?Download WordPress

Forums

Awesome Filterable Portfolio
Enable prev/next & setting ColorBox max height (1 post)

  1. Chrisbz
    Member
    Posted 7 months ago #

    Thought this may help someone...

    Enable prev/next buttons and setting ColorBox height to 95% of viewport to ensure it fits the visible window space:

    File:
    .../wp-content/plugins/awesome-filterable-portfolio/js/afp-functions.js

    jQuery(document).ready(function($) {
    // $(".colorbox").colorbox(); //original line
    $(".colorbox").colorbox({rel:"colorbox", maxHeight:"95%"}); //edited
    });

    of course ... if the plugin is updated you have to re-apply the patch

    HTH
    Chris

    https://wordpress.org/plugins/awesome-filterable-portfolio/

Reply

You must log in to post.

About this Plugin

About this Topic