I thought I would share this with everyone, I've seen it ask many times.
I'm going to use "useful Info" as an example. You can put anything you want into fancybox.
You should be able to use my code without changing anything. Demo -->
http://jsfiddle.net/mmcsus/kQn9D/18/ Edit your item.php place the following code right before the ending head tag.
<script type="text/javascript">
$(document).ready(function(){
$("a#inline4").fancybox({
openEffect : 'none',
closeEffect : 'none',
scrolling: 'no',
padding: [0, 0, 0, 0],
nextEffect : 'fade',
prevEffect : 'fade',
loop : false,
helpers : {
title : {
type : 'inside'
}
}
});
});
</script>
Now add the following to where you want the button to be, maybe next to the share button.
Notice the button will display "Avoid Scams" change it to your liking.
<p class="button3"id="btnShowForm3">
<span class="info"><a id="inline4" href="#Mydiv4"><?php _e('Avoid Scams', 'modern') ; ?></a></span>
</p>
Now find your useful Info around line 110
<div id="useful_info">
<h2><?php _e('Useful information', 'modern') ; ?></h2>
<ul>
<li><?php _e('Avoid scams by acting locally or paying with PayPal', 'modern'); ?></li>
<li><?php _e('Never pay with Western Union, Moneygram or other anonymous payment services', 'modern'); ?></li>
<li><?php _e('Don\'t buy or sell outside of your country. Don\'t accept cashier cheques from outside your country', 'modern'); ?></li>
<li><?php _e('This site is never involved in any transaction, and does not handle payments, shipping, guarantee transactions, provide escrow services, or offer "buyer protection" or "seller certification"', 'modern') ; ?></li>
</ul>
</div>
Change to:
<div id="Mydiv4" style="display:none">
<div id="useful_info">
<h2><?php _e('Useful information', 'modern') ; ?></h2>
<ul>
<li><?php _e('Avoid scams by acting locally or paying with PayPal', 'modern'); ?></li>
<li><?php _e('Never pay with Western Union, Moneygram or other anonymous payment services', 'modern'); ?></li>
<li><?php _e('Don\'t buy or sell outside of your country. Don\'t accept cashier cheques from outside your country', 'modern'); ?></li>
<li><?php _e('This site is never involved in any transaction, and does not handle payments, shipping, guarantee transactions, provide escrow services, or offer "buyer protection" or "seller certification"', 'modern') ; ?></li>
</ul>
</div>
</div>
Now edit your style.css around line 320
/* Useful info */
.item #useful_info { background:#f7f7f7; border: 1px solid #DDD; clear:both; padding:15px 20px; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; margin-bottom: 10px; }
.item #useful_info h2 { border:none; margin:0; }
.item #useful_info ul { list-style:disc outside; padding-left:20px; }
.item #useful_info ul li { line-height:18px; margin-top:8px; }
Style the button anyway you like but you can start out like this:
You will notice the .item is missing before #useful_info this has to be done or you will lose your style inside Fancybox.
/* Useful info */
#useful_info { background:#ffe5e0; border: 1px solid #DDD; clear:both; padding:15px 20px; -moz-border-radius:10px; -webkit-border-radius:10px; border-radius:10px; margin-bottom: 10px; }
#useful_info h2 { border:none; margin:0; }
#useful_info ul { list-style:disc outside; padding-left:20px; }
#useful_info ul li { line-height:18px; margin-top:8px; }
.item .button3 { line-height:normal; padding-top:0px; }
.item .button3 .info { margin-left: 10px; }
.item .button3 span { background-color:#84c4ff;box-shadow: 1px 1px 1px #c9c6c6; border:1px solid #5fb2ff; float:left; padding:6px 10px 7px; -moz-border-top-left-radius:5px; -webkit-border-top-left-radius:5px; border-top-left-radius:5px;-moz-border-bottom-left-radius:5px;-webkit-border-bottom-left-radius:5px;border-bottom-left-radius:5px;-moz-border-bottom-right-radius:5px;-webkit-border-bottom-right-radius:5px;border-bottom-right-radius:5px;-moz-border-top-right-radius:5px; -webkit-border-top-right-radius:5px; border-top-right-radius:5px; }
.item .button3 span a {text-shadow: #9b9b9b 0 -1px 0; color:#FFF; float:left; text-decoration:none; }
.item .button3 span a:hover { color:#00FFFF;}
This has been tested in 3.0.2 modern theme.
That's it.
Happy New Year!