How to Install FancyBox Lightbox on a WordPress Website

Posted in Code Snippets, Website Tips, Wordpress

1. Paste this code after the opening tag and before the closing tag in your header.php file. (Just after the lines that start with “” is a good spot.) <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory');?>/fancybox/jquery.fancybox-1.3.4.css" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> <script type="text/javascript" src="<?php...

Read More

WordPress Template Directory function to call CSS or JS file

Posted in Code Snippets

CSS: <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/style.css" /> JS: <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/script.js"></script>

Read More

Calling Google JQuery Library in Header or Footer

Posted in Code Snippets

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>

Read More

Load Javascript on Specific WordPress Pages

Posted in Code Snippets

<?php if (is_page(array(42, 'about-me','About Me And Joe'))) { ?> stuff here <? } else { ?><? } ?> Source: WordPress Forums

Read More