GK Portfolio not working

Modern, responsive, unique and elegant one-page WordPress theme to showcase your creativity
GK User
Tue Jun 25, 2013 10:42 am
Hi

I installed the Creativity quickstart but on the front page, the Portfolio doesn't appear to be working. Should it work or have I missed something?

Thanks
User avatar
Junior Boarder

GK User
Tue Jun 25, 2013 2:23 pm
Hi,

If you installed Quickstart package properly, GK Portfolio widget should appear on the homepage. Could you provide an URL to your website? (here or via PM)
User avatar
Moderator

GK User
Tue Jun 25, 2013 2:36 pm
I did it properly. I'll try again with a second installation. Unfortunately I am working on my localhost.

I doubt this will help but all it is showing is:
Code: Select all
<div class="box  bigtitle all widget_gk_portfolio" id="widget_gk_portfolio-2">
<h3 class="box-title">What we do <small>We create ideas with passion! See our current works</small></h3>
<div data-rows="2" data-cols="3" class="gk-portfolio active">
<div class="gk-images-wrapper gk-images-cols3 animate_queue">
</div>
<a data-text="false" class="gk-load-more border bigbutton" href="?cat=102">More work</a>
</div>
</div>
User avatar
Junior Boarder

GK User
Tue Jun 25, 2013 6:46 pm
Are you using localhost server on Windows? Then try to edit Creativity/gavern/widgets-portfolio.php file, find generate_art_image function (around line 413) and replace this function with this one
Code: Select all
function generate_art_image($i, $art_ID) {
       $image = wp_get_attachment_image_src( get_post_thumbnail_id( $art_ID ), 'single-post-thumbnail' );
       $image_path = $image[0];
       $upload_dir = wp_upload_dir();
       $image_path = str_replace($upload_dir['baseurl'] . '/', '', $image_path);
       
       if($image_path != '') {
          $img_editor = wp_get_image_editor( $upload_dir['basedir'] . '/' . $image_path);
          
          if(!is_wp_error($img_editor)) {
             $img_editor->resize($this->wdgt_config['article_image_w'], $this->wdgt_config['article_image_h'], true);
             $img_filename = $img_editor->generate_filename( $this->id, dirname(__FILE__) . '/' . 'cache_nsp');
             $img_editor->save($img_filename);
             
              $new_path = basename($img_filename); 
            $cache_uri = get_template_directory_uri() . '/gavern/cache_nsp/';   
             
             if(is_string($new_path)) {
                 $new_path = $cache_uri . $new_path;
             
                return $new_path;
             } else {
                return false;
             }
          } else {
             return false;
          }
       } else {
          return false;
       }
    }
User avatar
Moderator

GK User
Tue Jun 25, 2013 7:32 pm
Brilliant! That worked. Thank you so much.
User avatar
Junior Boarder

GK User
Sat Jul 06, 2013 11:49 am
When adding Image - Set Featured Image, there is no choice before the loaded Images
User avatar
Fresh Boarder

GK User
Mon Jul 08, 2013 7:53 am
Hi @vitalbe,

sorry, but I'm not sure what do you mean? It's related to GK Portfolio in Creativity theme? If not, please write a new thread in proper section (with more details).
User avatar
Moderator


cron