Skip to content

Instantly share code, notes, and snippets.

View andornagy's full-sized avatar

Andor Nagy andornagy

View GitHub Profile
1.1.0 - Remove Custom Home Page Keywords
- Fixed overflowing images
- Removed WP AutoUpdate Checker ( since wordpress.org has it's own. )
- Added Archive.php
- Removed Custom Header
- Removed Custom CSS from the options page
- Added Official custom CSS support
- Removed Custom Widgets
1.0.9 - Added Pages Widget
[gist id=546764]
[gist id=546764 file=file.txt]
[gist id=546764 file=file.txt bump=1]
[gist]http://gist.github.com/546764[/gist]
<select id="classes">
<option value="red">Red</option>
<option value="green">Gree</option>
<option value="blue">Blue</option>
</select>
<script type="text/javascript" charset="utf-8">
var newClass = document.getElementById('classes'); // This is the class name of your dropdown menu with the new classes
var div = document.getElementById('div'); // Is the ID of the element you want to change class on.
addEvent(newClass, 'change', function() {
div.className = newClass.value;
});
// Based on the lessons from Nettuts
<style type="text/css">
.red { color: red; }
.green { color: green; }
.blue { color: blue }
</style>
<?php theme_menu('primary'); ?>
<?php
function theme_menu($menu) {
if ( has_nav_menu( $menu.'-menu' ) ) {
?>
<div id="<?php echo $menu ?>-menu"> <?php
<?php theme_menu('primary'); ?>
<?php
function move_admin_bar() {
echo '<style type="text/css">
#subnav { top: 28px; }
</style>';
}
add_action( 'admin_bar_menu', 'move_admin_bar' );
<?php
add_filter('user_contactmethods', 'my_user_contactmethods');
function my_user_contactmethods($user_contactmethods){
$user_contactmethods['twitter'] = 'Twitter Username';
$user_contactmethods['facebook'] = 'Facebook URL';
$user_contactmethods['google'] = 'Google Profile Link';
$user_contactmethods['pinterest'] = 'Printerest Username';