New Landing How can we help? Themeforest Theme Support Flexform Adding the subtitle to the lightbox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Flexform
  • #6899
    craigFTD
    Member
    Post count: 1

    Hi, I’m attempting to echo out the Subtitle of a portfolio item into the “title” attribute of the “a” in portfolio.php (around line 257) in hopes of it showing as a caption under the image when in lightbox view. I can’t seem to find the subtitle text in any variables I can see in the debugger.

    Does anyone have any tips? Thanks!

    #6901
    craigFTD
    Member
    Post count: 1

    FIXED:

    The variable name was “$item_subtitle” (of course).

    I resolved this by adding a “Subtitle” to the portfolio item in the wp-admin and then added the following code to line 257 under (if ($image) {)


    if ($item_subtitle) {
    $link_config .= ' title="'.$item_subtitle.'"';
    }

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

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

License required for one of the following items
Login and Registration Log in · Register