Support » Plugin: Google Photos Gallery with Shortcodes » Album title in JIG view

  • Resolved johno69

    (@johno69)


    What shortcode can we use to show the album title in JIG view in the pro version?

    Tried all of these, album_title=1 show_title=1 show_details=1, none show the album name above the grid.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Resolved, I worked out how to fix it.

    Hello,

    can you share the solution?

    I want to show the album title in the same situation (JIG view in the pro version)

    Thanks in advance

    Add to functions.php

    //THIS IS A CUSTOM SHORTCODE TO DISPLAY A PARAMETER FROM THE URL
    function URLParam( $atts ) {  
        extract( shortcode_atts( array(
            'param' => 'param',
        ), $atts ) );
        return $_GET[$param];  
    }
    add_shortcode('URLParam', 'URLParam'); 
    // end function

    Shortcode for page photos are displayed.
    [URLParam param='cws_album_title']

    Demo: https://www.tictocequestrian.com.au/gallery/

    Click into an album and you will see the title.

    Thank you for your answer,

    unfortunately it didn’t work for me.
    Maybe this is because I am using a DIVI template,…

    I added the lines you mentioned to functions.php in the DIVI theme and also I added the shortcode to the page fotos;

    [cws_gpp_images_by_albumid_gp id=’ADqpsRYnwb6YNID6kjOcl-u_026dpZGi2v-NdQFYa9riLa_sdix9bWcKbqQY3vnuh7nvE34y42Uk’ thumb_size=250 theme=projig show_title=1 show_details=1 param=’cws_album_title’ row_height=200]

    Who knows… Thanks anyway

    By the Way, congratulations for your web. It looks very dinamic and attractive!

    Leave the code in the functions file.

    This shortcode, needs to be placed separately to the photos shortcode, you can’t add them together

    [URLParam param='cws_album_title']

    This alone will add the album title in text to the page. Best to place it just before the photos shortcode.

    What is your site, I can take a look if you like?

    Hey! You are a genious.

    it works!

    Thank you very much.

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