New Landing How can we help? Cardinal Gallery text link to lightbox

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Cardinal
  • #207688
    Kirsten
    Member
    Post count: 192

    Hi guys,

    Option 1: I would like to not have the titles of galleries link to the gallery page but also to the lightbox, just like the thumbnail does.

    Option 2: I would like to remove the link of the title so people can only click on the featured image of the gallery to open the lightbox.

    The 2nd option I already created myself in sf-galleries.php to change this line at 183:

    
    $gallery_items_output .= '<h3 class="gallery-item-title" itemprop="name headline"><a href="' . get_permalink() . '">' . $item_title . '</a></h3>' . "\n";
    

    in:

    
    $gallery_items_output .= '<h3 class="gallery-item-title" itemprop="name headline">' . $item_title . '</h3>';
                        }
    

    But somehow when I place sf-galleries.php in my child theme it won’t load.

    So do you have a solution?

    #207753
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Kirsten,

    Do not place the file itself there, you are looking to copy/paste in the function you are editing into the child theme functions.php.

    Thanks.

    #208737
    Kirsten
    Member
    Post count: 192

    How eaxctly can I do that? If I take the piece of code beneath line 165 at the thumbnail then the site goes offline.
    What is the exact piece of code I can place in functions.php?

    #209070
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The file sf-galleries contains a PHP function sf_galleries().

    This entire function would need to be copied into your functions.php. Here is the function that would need to be copied and pasted into your functions.php file: http://pastie.org/private/jknudgebz4im9giccg5fog.

    Thanks,
    David.

    #209094
    Kirsten
    Member
    Post count: 192

    Great thank you, that worked like a charm!

    #209095
    David Martin – Support
    Moderator
    Post count: 20834

    That’s great news! – Glad you got it sorted!

    – David.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register