groups

name language licence
Untitled Snippet Other Other
maeghandonovan HTML Other
someecards Other Other
featured sliding content PHP BSD
How to change the default Wordpress excerpt PHP BSD
player PHP BSD
Excluding the Category PHP BSD
Custom post title with lead graphic background PHP BSD

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 >



language: PHP
licence: BSD

featured sliding content

options: view full snippetsend to code collector
//Open up header.php in the theme editor. Add these three lines of code somewhere between the <head> and </head>

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/slider.css" type="text/css" media="screen" charset="utf-8">
<script src="<?php bloginfo('template_directory'); ?>/js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?php bloginfo('template_directory'); ?>/js/slider.js" type="text/javascript" charset="utf-8"></script>

//Now that we have loaded the css and javascripts required for running the slider, we can now include the slider.php Wordpress template file in your theme files. Open up index.php or home.php and locate spot where you want to include the slider. If you are using our Modularity theme framework, you might insert the slider right above this line of code:


<?php
$featured = get_option('T_featured');
if($featured == "On") { include (THEMELIB . '/apps/featured.php'); }
?>

//Paste this right above it:
	
(Continues...)