• Resolved goliathks

    (@goliathks)


    Hello, I would like to know if it is possible to use the plugin to embed text (e.g., descriptive text) in a gallery above the images?

    I would greatly appreciate a response.

    Thank you very much and best regards,
    goliathks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support elviiso

    (@elviiso)

    Hi @goliathks

    This option is currently not available. However, you can easily implement this with whatever page builder you are using. Simply add a text block/widget on top of the gallery and add a descriptive text to the text block/widget.

    Thanks

    Kind regards,
    Elvis

    Plugin Author bradvin

    (@bradvin)

    hi @goliathks,

    There is a way to get this working with some custom code:

    1. Make sure the FooGallery album extension is enabled
    2. Goto Settings -> Albums and enable “Enable Gallery Descriptions” and save
    3. Add this custom code to your functions.php:

    add_action( 'foogallery_loaded_template_before', 'foogallery_render_gallery_description' );
    function foogallery_render_gallery_description( $foogallery ) {
    if ( isset( $foogallery->_post ) && !empty( $foogallery->_post->post_content ) ) {
    $content = apply_filters( 'the_content', $foogallery->_post->post_content );
    echo $content;
    }
    }

    You should then see a content editor when editing a gallery, and the code above will add that content above the gallery. You can choose to customize how it is output and wrap it in a div or paragraph etc.

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

The topic ‘Text in gallery?’ is closed to new replies.