By Austin on April 15, 2009
This is a simple one.
/**
* Your Blog title
*
*/
function my_blog_title() {
$blogname = get_bloginfo(‘name’);
return ‘<span class=”blog-title”>’ . $blogname . ‘</span>’;
}
add_shortcode(‘blog-title’, ‘my_blog_title’);
Just add this to your functions.php file and then add [blog-title] in any post or page and it will return your Blog Title.
Posted in Tips & Tricks | Tagged functions, shortcodes, Tips & Tricks
By Austin on April 2, 2009
Looking to add a favicon to you site?
Inside your WordPress theme’s functions file (functions.php) add the following to inside your PHP code.
/**
* FAVICON
* @WPCult.com
*/
function my_favicon() { ?>
<link rel=”shortcut icon” href=”<?php echo bloginfo(“stylesheet_directory”) ?>’/images/favicon.ico” />
<?php }
add_action(‘wp_head’, ‘my_favicon’);
That’s it, just be sure to upload an icon image or a .gif/.png. Be sure to [...]
Posted in Tips & Tricks | Tagged favicon, functions, functions.php
By Austin on March 27, 2009
At the time of writing this post I have Theme Hybrid as my parent theme, and am using a custom version of Hybrid News that Justin Tadlock offers to the public.
Well I want to tell you how you can add additional custom meta boxes to your child theme’s running the Hybrid Theme.
In your child function.php [...]
Posted in Themes, Tips & Tricks | Tagged Child Themes, functions, meta box, Theme Hybrid
By Austin on February 26, 2009
Hey everyone, as you may have noticed I have a running on the site. While everything almost everything moved over smoothly, there was an issue with how my parent theme striped text in typography. This caused some plugins, like cformsII to not be allowed to print to the screen. Justin had helped to find [...]
Posted in Themes, Tips & Tricks | Tagged functions, Hybrid Theme, Tips & Tricks
Recent Comments