Lightview Plus
Thumbnail navigation issue (2 posts)

  1. kryvulena
    Posted 3 years ago #


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

    I inserted

    controls: { type: 'thumbnails' }


    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?


  2. kryvulena
    Posted 3 years ago #

    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>

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Lightview Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.