Support » Plugin: Photo Gallery by 10Web - Mobile-Friendly Image Gallery » Gallery description in gallery view

  • Resolved Gustavo Cieslar



    I know that a gallery description can be displayed in the extended album view, but I also wanted to show the gallery description when I open a gallery, like this: see screenshot

    In order to do this I had to add some code to /frontend/views/BWGViewAlbum_compact_preview.php.
    On line 607 you will find:

    if ($type == ‘gallery’) {
    <div class=”bwg_back_<?php echo $bwg; ?>” ><?php echo isset($_POST[‘title_’ . $bwg]) ? esc_html($_POST[‘title_’ . $bwg]) : ”; ?></div>

    After the div line I added:

    $gallery_row = $this->model->get_gallery_row_data( $album_gallery_id );
    $description = trim($gallery_row->description);
    if (!empty($description)) {
    <div class=”gallery_description”><?php echo $gallery_row->description; ?></div>

    Do you think you can add something similar to this in the next update?

    Thank yoy!

    Best regards,


Viewing 1 replies (of 1 total)
  • Sona



    Thanks for the tips on the process, we actually plan to make such changes to the gallery in future with one of the updates. Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Gallery description in gallery view’ is closed to new replies.