WordPress.org

Support

Support » Plugins and Hacks » Awesome Filterable Portfolio » Enable prev/next & setting ColorBox max height

Enable prev/next & setting ColorBox max height

  • 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/

  • The topic ‘Enable prev/next & setting ColorBox max height’ is closed to new replies.
Skip to toolbar