Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Use a spacebar or arrow keys to navigate

WDN109 WordPress II

Session 4: Site Info

Erick Hitter

cdia@ethitter.com

get_stylesheet_directory_uri()

Lets you find the URL for the active theme directory's.

Use to add the http://yourgroovydomain.com/wp-content/themes/yourtheme before /style.css.

Any file in your theme's PHP that needs to reference an image, stylesheet, or JavaScript file (not PHP) in the theme.

get_stylesheet_directory_uri()

 

<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png" />

wp_title()

 

 

http://codex.wordpress.org/Function_Reference/wp_title

wp_title()

 

<title><?php wp_title(); ?></title>

bloginfo( $thing )

 

$thing could be:

 

More options at http://codex.wordpress.org/Function_Reference/get_bloginfo.

bloginfo()

 

<h1><?php bloginfo( 'name' ); ?></h1>

<h2><?php bloginfo( 'description' ); ?></h2>

Common Title Tag

 

<title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>

home_url()

Get the address for the current WordPress site.

 

http://codex.wordpress.org/Function_Reference/home_url

home_url()

 

<a href="<?php echo home_url( '/' ); ?>">Home</a>

<a href="<?php echo home_url( '/' ); ?>">
	<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png" />
</a>