Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Link on Portfolio Items

    • 9 years, 11 months ago lizybloom
      Participant

      Expired

      Hi.  I want to remove the link from the portfolio images.  I want them to still open into lightbox, but I don’t want them to link anywhere.  In fact, I don’t really need either icon, but the magnifying glass is fine if I have to keep it in order to have the lightbox.

      https://lizybloom.com/carnegie/medical-supplies/

      Thanks.

      Lizy Bloom

    • 9 years, 11 months ago Mirela
      Participant

      Hello,

      Please go to file \includes\view\portfolio\loop-grid.php and find this block of code:

      <?php }else if($style == 'basic'){ ?>
         <div class="portfolio-item mix <?php echo esc_attr($sort_classes) ?> <?php echo esc_attr($extra_class) ?>  <?php echo esc_attr($style) ?>" data-id="<?php echo get_the_ID() ?>">
          <div class="he-wrap tpl2">
          <?php if($columns == 5) $columns = 4; ?>                
          <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port'.$columns, 'url')) ?>" alt="">              
          <div class="overlay he-view">
          <div class="bg a0" data-animate="fadeIn">
            <div class="center-bar v1">
             <a href="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), array("width"=> 1200, "height" => 1200), "url")) ?>" class="link a2 lightbox-gallery lightbox" data-animate="fadeInRight"><i class="moon-search-3"></i></a></a>
             <a href="<?php echo $link ?>" class="link a1" data-animate="fadeInLeft"><i class="moon-link-4"></i></a></a>
             </div>
            </div> 
           </div>                          
          </div>

      And remove this line:
      <a href="<?php echo $link ?>" class="link a1" data-animate="fadeInLeft"><i class="moon-link-4"></i></a></a>
      Save file.

      Best regards!

    • 9 years, 9 months ago lizybloom
      Participant

      Expired

      Thanks!  That worked great.  Can you also tell me how to remove the link in the portfolio item?  I really just want images to open up to bigger images for now.  Thanks.

    • 9 years, 9 months ago Mirela
      Participant

      Hello,

      In the same file, find this line(it’s used more than once):
      <h5><a href="<?php echo $link ?>"><?php echo get_the_title() ?></a></h5>
      Replace with this:
      <h5><?php echo get_the_title() ?></h5>

      Best regards!

Viewing 3 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password