groups

name language licence
featured sliding content PHP BSD
How to change the default Wordpress excerpt PHP BSD
Display an External RSS Feed PHP BSD
WORDPRESS STATIC HTML TEMPLATE PHP BSD
CUSTOM TEMPLATES FOR POSTS IN WORDPRESS PHP BSD
WORDPRESS: LATEST POSTS FROM CATEGORY PHP BSD
Better more link PHP BSD
WORDPRESS INCLUDE PAGE CONTENT PHP BSD

< 1 2 >



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...)