Support Forums for LiveMesh Themes & Plugins › Forums › Extinct Theme Support › Use Portfolio as Gallery Only
- This topic has 6 replies, 2 voices, and was last updated 11 years, 4 months ago by
dmcmullen.
-
AuthorPosts
-
September 30, 2013 at 3:48 pm #1962
dmcmullen
MemberWanting 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!
October 1, 2013 at 8:57 am #1970livemesh
KeymasterPls 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 .= ''; // end of image-area }'; if ($context == 'portfolio') $image_info .= ''; $after_html .= $image_info; } $after_html .= ''. $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 .= 'October 1, 2013 at 3:02 pm #1979dmcmullen
MemberCopy/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?
October 2, 2013 at 5:11 am #1989livemesh
KeymasterMust 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
October 2, 2013 at 3:11 pm #2001dmcmullen
MemberThis reply has been marked as private.October 2, 2013 at 5:47 pm #2003livemesh
KeymasterThis reply has been marked as private.October 2, 2013 at 6:25 pm #2006dmcmullen
MemberIt 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
-
AuthorPosts
- The topic ‘Use Portfolio as Gallery Only’ is closed to new replies.