additional text at the slideshow

Discussion in 'Vlieland' started by kunstwerk, Jun 12, 2017.

  1. kunstwerk

    kunstwerk New Member

    Joined:
    Jun 12, 2017
    Messages:
    5
    Likes Received:
    0
  2. maimairel

    maimairel Administrator
    Staff Member

    Joined:
    Apr 16, 2014
    Messages:
    1,584
    Likes Received:
    58
    Hi,

    You can change this inside includes/vlieland-media.php inside the vlieland_flickity function.
    Look for this code:

    Code (PHP):

    if( $show_caption ) :

        $attachment = get_post( $attachment_id );
        if( ! empty( $attachment->post_excerpt ) ) :
            $output .= '<figcaption itemprop="caption">' . wp_kses_post( $attachment->post_excerpt ) . '</figcaption>';
        endif;

    endif;
    That's the code you need to modify to add the description. Add $attachment->post_content for the description. It's using post_excerpt on the original code, and that's the caption.

    Thanks!
     
  3. kunstwerk

    kunstwerk New Member

    Joined:
    Jun 12, 2017
    Messages:
    5
    Likes Received:
    0
  4. maimairel

    maimairel Administrator
    Staff Member

    Joined:
    Apr 16, 2014
    Messages:
    1,584
    Likes Received:
    58
    Hi,

    Can that link field be just a text field where you can type the URL?
    What do you want to do with the link? Display it beside the caption?

    This modification is easily implemented via a child theme, not breaking future updates.

    Let's continue this via email - mail me via the ThemeForest contact form :)

    Thank you!
     
  5. kunstwerk

    kunstwerk New Member

    Joined:
    Jun 12, 2017
    Messages:
    5
    Likes Received:
    0
    you got mail :)
     

Share This Page