Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,
    do you want the modal box to be removed only in featured images or everywhere?

    Thread Starter gstar

    (@gstar)

    Either way works for me, I’m only using featured images at the moment so if I could get rid of it there, perfect.

    You can open single.php and remove
    class="ci-lightbox"
    from

    <a class="ci-lightbox" href="<?php echo esc_url( ci_theme_get_image_src( get_post_thumbnail_id(), 'large' ) ); ?>">

    Repeat for page.php and template-fullwidth.php
    If you decide to proceed with this modification I would suggest you create a child theme, copy over the files you are editing and make the modifications there. This will allow your changes to survive future theme updates. If you directly edit the theme’s files, all changes will be lost once you update.

    Have a look at this guide to learn more about child themes and how to create one
    http://www.cssigniter.com/ignite/beginners-guide-child-themes/

    • This reply was modified 9 years, 2 months ago by Fotis.
    Thread Starter gstar

    (@gstar)

    Thanks, I’ve removed this:

    class=”ci-lightbox”

    But images can still be clicked.

    Hi there,
    you will need to replace

    <a class="ci-lightbox" href="<?php echo esc_url( olsen_light_get_image_src( get_post_thumbnail_id(), 'large' ) ); ?>"><?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'image' ) ); ?>
    </a>

    with

    <?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'image' ) ); ?>
    

    in your single.php and page.php.

    Also replace
    <a class="ci-lightbox" href="<?php echo esc_url( olsen_light_get_image_src( get_post_thumbnail_id(), 'large' ) ); ?>"><?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'image' ) ); ?></a>

    with
    <?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'image' ) ); ?>
    in template-fullwidth.php

    • This reply was modified 9 years, 2 months ago by Fotis.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Turn off lightbox’ is closed to new replies.