WordPress.org

Ready to get started?Download WordPress

Forums

Auto ThickBox Plus
[resolved] Add overlayed logo (Watermark-like) over gallery pictures (2 posts)

  1. PAPPL
    Member
    Posted 2 years ago #

    Hi, i'd like to overlay text or a semitransparent logo/icon to every image-popup.

    I'm thinking of something like this:
    <a href="http://www.url.com"><img src="/semitransparent-logo.png" title="description" style="height:48px; width:48px; position:absolute; top:33.0%; right:10.0%;" alt="alternative text"; font-style:italic; font-weight:bold; font-size:80% /></a>

    But where do i need to place this code to make it work on auto-thickbox plus gallery view popup?

    I don't want to place this logo directy on the images, i know there are plugins which can do hard watermark all images. So please help me.

    Thanks Pappl

    http://wordpress.org/extend/plugins/auto-thickbox-plus/

  2. attosoft
    Member
    Plugin Author

    Posted 2 years ago #

    Hi PAPPL,

    where do i need to place this code to make it work on auto-thickbox plus gallery view popup?

    There are several places that you can add the code. For instance, you can add the following code at between line 204 and 205 in thickbox.js.

    TB_Image += '<a href="http://www.url.com"><img src="/resources/paw48.png" title="description" alt="alternative text" style="height:48px; width:48px; position:absolute; top:33.0%; right:10.0%;" /></a>';
    

    By default, Auto ThickBox Plus uses thickbox.min.js. So you need to replace thickbox.min.js with modified thickbox.js.

    BTW in your code, alt attribute position is wrong.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic