WordPress.org

Forums

Garee's Random Image
[resolved] Exclude the text under the image? (2 posts)

  1. davidbanga
    Member
    Posted 1 year ago #

    I would like to use this plug in, but do not want the text under the images. How do I disable that?

    Thanks!

    http://wordpress.org/plugins/garees-random-image/

  2. garee
    Member
    Plugin Author

    Posted 1 year ago #

    Just take the default-plugin and remove the text:

    Either change the file default.htmlin the template-folder or add a new file to the template-folder. File-content:

    <a href="{{full_image_url}}" title="{{image_title}}" alt="{{image_title}}" {{#window_image}}target="_blank" {{/window_image}}>
       	{{#size}}{{{image}}}{{/size}}{{^size}}{{{thumbnail}}}{{/size}}
    </a>

    You could also add the template directly in the shortcode:

    [random_image_template]<a href="{{full_image_url}}" title="{{image_title}}">
       	{{#size}}{{{image}}}{{/size}}{{^size}}{{{thumbnail}}}{{/size}}
    </a>[/random_image_template]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.