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

Portfolio problems

    • 8 years, 7 months ago fiberyazilim
      Participant

      Expired

      Hi, this is my website.

      piaweddings.com

      Please look my website. I want to click to picture and ı want to see project.

      But it shows under the project name and click the it and see project.

      How can ı set the only click the pic and see project?

      • This topic was modified 8 years, 7 months ago by fiberyazilim.
    • 8 years, 7 months ago Mirela
      Participant

      Hello,

      Please go to file \includes\view\portfolio\loop-grid.php and find these lines:

      if($style == 'grayscale'){ ?>
      <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="">
           <?php if($item_grid_class == 5){  ?>
                 <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port4', 'url')) ?>" alt="">
           <?php } ?>
           <?php if($item_grid_class == 3){  ?>
                  <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port4', 'url')) ?>" alt="">
           <?php } ?>
           <?php if($item_grid_class == 4){ ?>
                 <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port3_grayscale', 'url')) ?>" alt="">
           <?php } ?>
           <?php if($item_grid_class == 6){ ?>
                 <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port2_grayscale', 'url')) ?>" alt="">
           <?php } ?>
           <?php if($item_grid_class == 12){ ?>
                 <img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port1', 'url')) ?>" alt="">
           <?php } ?>
         <div class="project">
          <h5><a href="<?php echo $link ?>"><?php echo get_the_title() ?></a></h5>
          <h6><?php echo esc_html($sort_classes) ?></h6>
         </div>   
        </div>          
       </div>

      Replace with these:

      if($style == 'grayscale'){ ?>
      <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="">
            <?php if($item_grid_class == 5){  ?>
              <a href="<?php echo $link ?>"><img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port4', 'url')) ?>" alt=""></a>
            <?php } ?>
            <?php if($item_grid_class == 3){  ?>
              <a href="<?php echo $link ?>"><img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port4', 'url')) ?>" alt=""></a>
            <?php } ?>
            <?php if($item_grid_class == 4){ ?>
              <a href="<?php echo $link ?>"><img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port3_grayscale', 'url')) ?>" alt=""></a>
            <?php } ?>
            <?php if($item_grid_class == 6){ ?>
              <a href="<?php echo $link ?>"><img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port2_grayscale', 'url')) ?>" alt=""></a>
             <?php } ?>
             <?php if($item_grid_class == 12){ ?>
               <a href="<?php echo $link ?>"><img src="<?php echo esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port1', 'url')) ?>" alt=""></a>
             <?php } ?>
         <div class="project">
             <h5><a href="<?php echo $link ?>"><?php echo get_the_title() ?></a></h5>
             <h6><?php echo esc_html($sort_classes) ?></h6>
         </div>   
        </div>          
      </div>

      Save changes and refresh page.

      Best regards!

    • 8 years, 7 months ago fiberyazilim
      Participant

      Expired

      thanx it is working. Also when ı add the tree colum what can ı do? is it working like this?

    • 8 years, 7 months ago Mirela
      Participant

      Hello,

      Sorry, can you explain better what do you mean by “tree column”? The portfolio will keep this form even if you make it with 2; 4 or 5 columns. But only if you keep the grayscale style you have now.

      Let us know.

      Best regards!

    • 8 years, 7 months ago fiberyazilim
      Participant

      Expired

      Perhaps, we will add three picture box for a portfolio. So when ı add the picture it will working again all of them? Or this code only for a six picture box?

    • 8 years, 7 months ago Mirela
      Participant

      Hello,

      It will work for them as well.

      Best regards!

Viewing 5 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