-
AuthorPosts
-
January 22, 2016 at 2:50 am #569707
Sorry – my last thread open on this topic (here) was closed, so I am starting a new one.
Titles are still not showing for me in lightbox when opened from portfolio view. I have tried re-installing Enfold manually, it hasn’t helped. Any other ideas?
Thankyou!January 24, 2016 at 4:53 am #570686Hi,
Can you please create me a temporary wp-admin / FTP access? post it here as a private reply.
Regards,
JosueJanuary 24, 2016 at 10:23 am #570733Sure.
January 24, 2016 at 10:15 pm #570920Hi!
Check it now, i added this code to child theme functions.php:
function custom_link_structure($link_markup, $entry){ $the_id = $entry->ID; $custom_link = get_post_meta( $the_id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : false; $link = $custom_link !== "" ? $custom_link : get_permalink($the_id); $link_markup[0] = "a href='{$link}' title='{$entry->post_title}' "; return $link_markup; } add_filter('avf_portfolio_custom_image_container', 'custom_link_structure', 10, 2);
Best regards,
JosueJanuary 24, 2016 at 10:17 pm #570922Hey Josue!! I just checked it, thanks so much! Only problem is, it shows the Portfolio post title rather than the IMAGE title. Can this be changed?
Also, are we able to stop the title showing as a tooltip when you hover over the images while in portfolio grid view?
Nearly there – thanks so much!!January 24, 2016 at 10:27 pm #570929Also…the menu item “MOVING” (while in portfolio) does not seem to be opening the items any longer. I had this set for them to open on a new page, it begins to load but then does not manage to open them – any ideas why this has started happening?
Thanks!January 24, 2016 at 10:30 pm #570932Hey!
There’s no real connection between the Portfolio item and the full size image other than the -explicitly set- URL (custom link). However, you can get the “featured image” (thumbnail) associated with that Portfolio item and show the title of that attachment instead.
function custom_link_structure($link_markup, $entry){ $the_id = $entry->ID; $custom_link = get_post_meta( $the_id ,'_portfolio_custom_link', true) != "" ? get_post_meta( $the_id ,'_portfolio_custom_link_url', true) : false; $link = !empty($custom_link) ? $custom_link : get_permalink($the_id); $title = get_post(get_post_thumbnail_id($the_id))->post_title; $link_markup[0] = "a href='{$link}' title='{$title}' "; return $link_markup; } add_filter('avf_portfolio_custom_image_container', 'custom_link_structure', 10, 2);
Regards,
Josue- This reply was modified 8 years, 10 months ago by Josue.
January 24, 2016 at 10:33 pm #570933Oh yeah, thats a perfect solution for it – works really well, thankyou!!!
Just the “Moving” page not working for some reason now…January 24, 2016 at 10:34 pm #570934When i click “moving” it leads me to – http://screencast.com/t/CgJOIg53S7xS
January 24, 2016 at 10:36 pm #570937Yes – sorry, thats right – but when the portfolio items are clicked in moving, it doesn’t take you to the page for the item anymore..
And I almost forgot – is there a solution for stopping the appearance of the “tooltip” that appears on the items in each grid on hover?January 24, 2016 at 10:48 pm #570939Hey!
1. Fixed, it was an error in the code.
2. Although you can remove the title/alt tags it would conflict with the lightbox because the lightbox script fetches those attributes specifically to show the caption under the image.Regards,
JosueJanuary 25, 2016 at 2:37 am #570987Ah cool ok, we can live with it then.
Many thanks for your help, legend!!
CarenJanuary 25, 2016 at 10:03 am #571174You are welcome, glad to help :)
Regards,
JosueJanuary 26, 2016 at 10:41 am #572004Actually – I have just noticed that my homepage is no longer loading properly…is this related to the latest changes? Seems to have only been happening since… I can’t load the page to edit it either! Do you mind taking a look? Thanks!
January 26, 2016 at 11:16 am #572019Hi!
The homepage did load fine for me (also the edit screen), can you specify what’s exactly is not loading properly?
Cheers!
JosueJanuary 26, 2016 at 11:27 am #572023The Easyslider seems to be not loading properly, but the problem seems intermittent – it works sometimes and not others. May be a server issue my end I am guessing…
January 26, 2016 at 11:30 am #572024Could be, try checking on another computer / network to discard.
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.