Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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!

    #570686

    Hi,

    Can you please create me a temporary wp-admin / FTP access? post it here as a private reply.

    Regards,
    Josue

    #570733

    Sure.

    #570920

    Hi!

    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,
    Josue

    #570922

    Hey 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!!

    #570929

    Also…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!

    #570932

    Hey!

    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.
    #570933

    Oh yeah, thats a perfect solution for it – works really well, thankyou!!!
    Just the “Moving” page not working for some reason now…

    #570934

    When i click “moving” it leads me to – http://screencast.com/t/CgJOIg53S7xS

    #570937

    Yes – 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?

    #570939

    Hey!

    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,
    Josue

    #570987

    Ah cool ok, we can live with it then.
    Many thanks for your help, legend!!
    Caren

    #571174

    You are welcome, glad to help :)

    Regards,
    Josue

    #572004

    Actually – 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!

    #572019

    Hi!

    The homepage did load fine for me (also the edit screen), can you specify what’s exactly is not loading properly?

    Cheers!
    Josue

    #572023

    The 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…

    #572024

    Could be, try checking on another computer / network to discard.

    Best regards,
    Josue

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.