WordPress.org

Ready to get started?Download WordPress

Forums

Projects by WooThemes
[resolved] Image navigation (4 posts)

  1. hugotiles
    Member
    Posted 4 months ago #

    Hi James,

    Is there anyway to link the cover page image to the project gallery image set. So that it would be possible to go through all images within the same "image navigation menu"?. Thanks

    https://wordpress.org/plugins/projects-by-woothemes/

  2. jameskoster
    Member
    Plugin Author

    Posted 4 months ago #

    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.

  3. hugotiles
    Member
    Posted 4 months ago #

    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!

  4. jameskoster
    Member
    Plugin Author

    Posted 4 months ago #

    Glad you sorted it yourself :-)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.