WordPress.org

Ready to get started?Download WordPress

Forums

Auto ThickBox Plus
[resolved] How to open http://myurl.com in thickbox (2 posts)

  1. digiblogger
    Member
    Posted 1 year ago #

    Hello there,

    First: Congrtulations. This is a super cool plugin.

    But in my theme I want to solve a special problem and think this is a little tricky

    My theme supports banner ads that are controlled via a theme options panel. In this panel, I must do two things to show a linked image in header:

    - first: upload an image
    -second: enter an URL

    In my header-template, the theme does the following:

    php echo
    get_option('lp_header_banner_link'); ?>" target="_blank"><img src="<?php echo get_option('lp_header_banner'); ?>" alt="" />

    Now my problem:

    I don't want to user the ad-feature for an add but for a "button that opens the URL (external Website) in an iframe like window.

    I tried to add the class="thickbox" attribute to the header source but this doesn't work.
    Is there a way to add a class to an http://... without changing the source of the header/with changing the source of the header?

    Digi

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

  2. attosoft
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Digi,

    I think your question is about ThickBox script rather than Auto ThickBox Plus plugin.

    In my understand, you develop a custom theme and want to use ThickBox script in options page of your theme.

    WordPress contains ThickBox script but does not load it by default. So you need to call wp_enqueue_script('thickbox') function when you use it.

    I recommend you use Media Uploader in WordPress to upload images.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic