Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Superbox (as Lightbox modal window) Integration - how to
#4
A way of protecting the admin files is to copy the related files inside the template folder. I just tested this with Fancybox successfully

1. theme file inside the <head></head> tags just before <?php get_header(); ?>

<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php get_theme_url(); ?>/assets/js/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" href="<?php get_theme_url(); ?>/assets/css/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<script>
jQuery(document).ready(function() {
if(jQuery().fancybox) {
$("a[rel*=enlarge]").fancybox();
}
});
</script>

2. In the page the image link should have
<a href="your link" class="fancybox" rel="enlarge" title="your title"><img src="your image"></a>
Reply


Messages In This Thread
Superbox (as Lightbox modal window) Integration - how to - by andyash - 2011-11-22, 03:39:13



Users browsing this thread: 1 Guest(s)