Use Portfolio as Gallery Only

Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1962
    Dmcmullendmcmullen
    Member

    Wanting to use the 3 column full width portfolio template as a photo gallery only.

    Love the hover state with title and ability to view image in lightbox.

    But don’t want the image to link to the portfolio-single.php page.

    What file should I edit to remove this linking functionality?

    Let me know and thanks!

    #1970
    Livemeshlivemesh
    Keymaster

    Pls modify the file <theme directory>/framework/functions/thumbnail-functions.php line number 113 onwards. It’s not an easy one to deal with this and hence I made the change and here it is (pls remove inline CSS once you have it working) –

                if (empty($before_html)) {
    
                    if ($context == 'portfolio') {
    
                        $before_html = '';
                        $after_html = '' . $after_html;
                    }
                    else {
                        $before_html = '';
                        $after_html = '' . $after_html;
                    }
                }
    
                if ($wrapper) {
                    $wrapper_html = '
    '; $before_html = $wrapper_html . $before_html; if (mo_show_image_info($context) || $show_image_info) { $image_info = ''; $image_info .= '
    '; if ($context == 'portfolio') $image_info .= '

    '. $post_title . '

    '; else $image_info .= '

    ' . $post_title . '

    '; $image_info .= mo_get_taxonamy_info($taxonamy); $image_info .= '
    '; $rel_attribute = 'rel="prettyPhoto[' . $context . ']" '; // point me to the source of the image for lightbox preview $image_info .= 'Preview'; $image_info .= '
    '; $image_info .= '
    '; $after_html .= $image_info; } $after_html .= '
    '; // end of image-area }
    #1979
    Dmcmullendmcmullen
    Member

    Copy/pasted this over lines 113 to the end of the document and it didn’t work. Breaks the site with an error in line 94 I believe.

    I also had to add a few }}}} at the end for the code to validate.

    Thoughts?

    #1989
    Livemeshlivemesh
    Keymaster

    Must be a formatting issue with BBPress/WordPress which many times cannot handle source code well. Will post the actual file here in few hours when I get back to my desktop so that you can overcome this issue. This code has been tested before and hence you should have no trouble. Thanks

    #2001
    Dmcmullendmcmullen
    Member
    This reply has been marked as private.
    #2003
    Livemeshlivemesh
    Keymaster
    This reply has been marked as private.
    #2006
    Dmcmullendmcmullen
    Member

    It worked! Thank you so much for all your help. The site is almost done so hopefully I won’t be bothering you anymore 🙂

    Thanks again,

    Daryl

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Use Portfolio as Gallery Only’ is closed to new replies.