WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Image navigation

[Resolved] Image navigation

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author James Koster

    @jameskoster

    You want the featured image to open a gallery? That’s not really possible without some customization. You’ll need to install a lightbox plugin and potentially tweak the gallery markup. Not really something I can do for you via the support forum I’m afraid.

    Hey James

    Thank you so much for your patience and your help. I think that I struck lucky! Looking through the files, I nailed the nesting if statement for the featured and gallery images inside project-feature.php. I simply erased the lines pertaining to the featured image:

    <?php
    /**
    * Single Project Image
    *
    * @author WooThemes
    * @package Projects/Templates
    * @version 1.0.0
    */

    if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly

    global $post;

    ?>
    <div class=”single-featured”>

    <?php
    if ( has_post_thumbnail() ) {

    if ( $attachment_count > 0 ) {
    $gallery = ‘[project-gallery]’;
    } else {
    $gallery = ”;
    }

    if ( apply_filters( ‘projects_gallery_link_images’, true ) ) {
    echo ‘‘ . $image . ‘‘;
    } else {
    echo $image;
    }

    }

    ?>

    </div>

    I then added the covered page image to the project gallery and also put the modified project-featured.php inside “projects->single-project” directory of my child theme. And unless Canvas has something to do with my lightbox like display, I just didn’t need to install any other plugin. Slowly but surely, it starting to look alike my Canvas portfolios. Thanks a lot!

    Plugin Author James Koster

    @jameskoster

    Glad you sorted it yourself 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Image navigation’ is closed to new replies.