Copyright © 2011 Yorgo Nestoridis. Visit the original article at http://yorgonestoridis.com/yorgo-nestoridis-development/wordpress-yorgo-nestoridis-development/how-to-add-the-date-to-the-wordpress-navigation/.Add the Date to WordPress Navigation Menu This post shows you how you can quickly add the date to your WordPress Navigation (Menu). This post is in line with the earlier tutorial about “How to add a search Box to the WordPress Navigation”. WordPress Functions and Style The procedure is simple: we just need to add the function and style it there after. Add the Date Function The following will work on any well designed WordPress theme. Add the following lines to your functions.php: add_filter('wp_nav_menu_items','add_date', 20, 2); function add_date($items, $args) { $items .= '<li>' . date("l F jS, Y") . '</li>'; return $items; } If you wish to style the date independently from the navigation styles, you just need to add a div class, for example: ‘navdate’ like this: add_filter('wp_nav_menu_items','add_date', 20, 2); function add_date($items, $args) { $items .= '<li class="navdate">' . date("l F jS, Y") . '</li>'; return $items; } Note on line 3 the inserted li class ‘navdate’; this link class allows us to style the date using our stylesheet (styles.css or custom.css as the case may be). Add Style To add style, we just create the new class [...]
Related posts:How to show a Search Box on the WP Navigation
Web Design Workshop 5 – Sub-Navigation
Web Design Workshop 4 – Navigation
Mitchell & Ness Snapback Caps in Stock
Web Design Workshop Navigation
Copyright © 2011 Yorgo Nestoridis. Visit the original article at http://yorgonestoridis.com/yorgo-nestoridis-development/wordpress-yorgo-nestoridis-development/how-to-show-a-search-box-on-the-wordpress-navigation/.WordPress Menu with Search Box Customize your WordPress Navigation (Menu) by adding a search box. As WordPress provides hooks and filters, it is relatively simple to customize many aspects of WordPress based sites, by just adding functions and styling them. Add a search Box to the WordPress Menu The principle is simple: if your theme does not provide this function, just add it to your functions.php and then was the case may be, style it by adding a few lines of code to your style sheet. Adding a Search Box to Semiomantics XO for WordPress Here is the function call, which will work on most any WordPress Theme: add_filter('wp_nav_menu_items','add_search_box', 10, 2); function add_search_box($items, $args) { ob_start(); get_search_form(); $searchform = ob_get_contents(); ob_end_clean(); $items .= '<li>' . $searchform . '</li>'; return $items; } If you would style the search box, just add a new div class to the list item, for example: add_filter('wp_nav_menu_items','add_search_box', 10, 2); function add_search_box($items, $args) { ob_start(); get_search_form(); $searchform = ob_get_contents(); ob_end_clean(); $items .= '<li class="sbox">' . $searchform . '</li>'; return $items; } Note the class=“sbox” on line 9. Once you add this function to your functions.php (in the [...]
Related posts:Mitchell & Ness Snapback Caps in Stock
Web Design Workshop 5 – Sub-Navigation
Web Design Workshop Navigation
How to Customize WordPress 2
Web Design Workshop 4 – Navigation
Copyright © 2010 Yorgo Nestoridis. Visit the original article at http://yorgonestoridis.com/yorgo-nestoridis-development/semiomantics/thesis-footer-tutorial. Contents [ hide ] 1 Add Footer Widgets to Thesis 1.1 Add Widgetized Footer to Thesis – 3 Columns 1.2 Add 4 Columns Widgetized Footer to Thesis 1.3 Style your Widget Footer Area Add Footer Widgets to Thesis This post shows how I add [...]Related posts:Thesis Tutorial Author BoxCreate a Header Widget in ThesisThesis Tutorial Feature BoxCreate a Widget below the Multimedia Box in ThesisThesis Tutorial Header Banner Rotator
Copyright © 2010 Yorgo Nestoridis. Visit the original article at http://yorgonestoridis.com/yorgo-nestoridis-development/semiomantics/thesis-tutorial-author-box. Contents [ hide ] 1 Add an Author Box to Thesis after Posts 1.1 1. Author Box on Thesis: custom function code 1.2 Author Box Style Add an Author Box to Thesis after Posts Here is how I have added the Author Box after [...]Related posts:Thesis Tutorial Header Banner RotatorSemiomantics Thesis InterpretationCreate a Header Widget in ThesisCreate a Widget below the Multimedia Box in ThesisHow to Customize WordPress 2
August 24, 2011
0