Monday, July 15, 2013

Add Pop-up Windows to Your WordPress

add_action('init', 'init_theme_method');
 
function init_theme_method() {
   add_thickbox();
}

  
<div style="text-align:center;padding:20px;">
<input alt="#TB_inline?height=300&amp;width=400&amp;inlineId=examplePopup1" title="add a caption to title attribute / or leave blank" class="thickbox" type="button" value="Show Thickbox Example Pop-up 1" /> 
</div>

  
<div id="examplePopup1" style="display:none">
<h2>Example Pop-up Window 1</h2>
<div style="float:left;padding:10px;">
I was born at DAZ Studio. They created me with utmost care and that is why I am the hottie that you see today. My interests include posing, trying out cute outfits, and more posing.
 
</div>

No comments:

Post a Comment