Support Forums for LiveMesh Themes & Plugins › Forums › Squash Theme Support › Portfolio link
Tagged: portfolio
- This topic has 11 replies, 2 voices, and was last updated 11 years, 4 months ago by
vtango123.
-
AuthorPosts
-
September 24, 2013 at 5:51 am #1788
vtango123
MemberI have created galleries of pictures and each one galley is linked to a portfolio item. Every gallery is grouped in a single page.
What i am doing right now is when someone is entering my portfolio page and click on a picture goes first to the project details and then using the button view portfolio goes to the page with the gallery of pics (i give the URL of my gallery page there..)
I wonder if it is possible when you hover over a portfolio item to direct you not to the “project details ” single page but instead to the galley of pictures.kind regards
Vassilis
September 26, 2013 at 8:48 am #1852livemesh
KeymasterLooks like you are saying you have a page with a gallery for each portfolio item which is linked from the project details page. Now to change the link shown on portfolio hover to point to this gallery page instead of the portfolio details page, you will need to make a small code change in the framework/functions/thumbnail-functions.php at line number 119. You need to insert the code
$post_link = get_post_meta($post_id, 'mo_portfolio_gallery_link', true);
and the code should look like –.... if ($context == 'portfolio') { $post_link = get_post_meta($post_id, 'mo_portfolio_gallery_link', true); $video_thumbnail = get_post_meta($post_id, 'mo_video_url_lightbox', true); ....
Once you have this code in place, you need to add a custom field named mo_portfolio_gallery_link to each portfolio item in the portfolio edit window with value of this custom field being URL to gallery page. That should do the trick. Pls see here –
http://codex.wordpress.org/Custom_Fields
for more details on custom fields in case you are not familiar with it. Thanks
September 26, 2013 at 9:48 am #1855vtango123
MemberThanks for your answer…
Unfortunately when i entered the code in this php file the whole site was off (gave me a server error message and a blank page). When i replaced it with the old /thumbnail-functions.php everything went normal…still the problem remains..
send you the modified file to check it…
many thanks
September 26, 2013 at 9:50 am #1856vtango123
MemberThis reply has been marked as private.September 26, 2013 at 10:14 am #1859livemesh
KeymasterThe place the code was inserted is incorrect. Pls extract the attached zip file and upload and see if that helps. Thanks.
September 26, 2013 at 10:44 am #1865vtango123
MemberThis reply has been marked as private.September 26, 2013 at 11:48 am #1870livemesh
KeymasterThis reply has been marked as private.September 26, 2013 at 12:07 pm #1872vtango123
MemberThis reply has been marked as private.September 26, 2013 at 1:00 pm #1874livemesh
KeymasterThis reply has been marked as private.September 27, 2013 at 11:27 am #1911livemesh
KeymasterPls check the installation. I was not aware that you had disabled the hover function. Should link to the page link from the portfolio item now. Thanks.
September 27, 2013 at 11:51 am #1912livemesh
KeymasterBTW, I made the following change at line number 103 – may need it when you update the theme.
$post_title = get_the_title($post_id); $post_link = get_permalink($post_id); /* Custom Code - Start */ if ($context == 'portfolio') { $gallery_link = get_post_meta($post_id, 'mo_portfolio_gallery_link', true); if (!empty($gallery_link)) $post_link = $gallery_link; } /* Custom Code - End */ if (empty($before_html)) { $before_html = ''; $after_html = '' . $after_html; }
September 27, 2013 at 5:54 pm #1917vtango123
MemberThank you so much for your help…i will do the trick for all the rest …
vassilis
-
AuthorPosts
- The topic ‘Portfolio link’ is closed to new replies.