• Hello

    I’ve been trying to configure the Lightview Plus to display thumbnail navigation instead the relative one.

    I inserted

    controls: { type: 'thumbnails' }

    and

    controls: { slider: false }

    in lightview.js for the dark theme options. It resulted in the slider being disabled, but I cannot get thumbnail navigation showing up along with galleries. It shows up for individually inserted pics in a post’s content only, but not wp galleries. I also tried to modify Lightview.Skins’ code section by inserting or replacing “type” definitions – no result either. Whatever I try to modify in lightview.js, wp gallery’s code uses this config code:

    data-lightview-options="skin: 'dark', controls: 'relative', padding: '10', shadow: { color: '#000000', opacity: 0.05, blur: 3 }"

    I suspect it is taken from somewhere else but can’t figure this out. Is there a way to fix it so that the thumbnail navigation shows up?

    http://wordpress.org/extend/plugins/lightview-plus/

Viewing 1 replies (of 1 total)
  • Thread Starter kryvulena

    (@kryvulena)

    Ok, please ignore my support request – I found it!

    If you wish to change this option, go to lightview-plus.php and find line #619 – this is the part responsible for contron options at Lightview-Plus’ admin/options page.

    Add this code:

    <option value="thumbnails" <?php selected($this->get_option('lv_controls_type'), "thumbnails") ?> class="small-text code">thumbnails</option>

    inside the select html tag so that the code looks like this:

    <select name="lv_controls_type" size="1">
       <option value="top" <?php selected($this->get_option('lv_controls_type'), "top") ?> class="small-text code">top</option>
       <option value="thumbnails" <?php selected($this->get_option('lv_controls_type'), "thumbnails") ?> class="small-text code">thumbnails</option>
       <option value="relative" <?php selected($this->get_option('lv_controls_type'), "thumbnails") ?> class="small-text code">relative</option>
    </select>

    Save and upload the php file, go to Lightview-Plus’ options and there you go: you are able to select “top”, “relative” or “thumbnails” as control options. Once “thumbnails” selected and options saved, you’ll be able to enjoy the thumbnail navigation along with Lightview at WP Galleries.

    It is very easy to implement so maybe it could be considered to incorporate this little hack with the official version of the plugin?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Lightview Plus] Thumbnail navigation issue’ is closed to new replies.