How to reverse engineer the Twenty Eleven background image uploader?

for the custom background, you’d call add_custom_background, for the cool header image things, it’s add_custom_image_header. You need to hook both those into something like after_setup_theme: <?php add_action( ‘after_setup_theme’, ‘wpse27586_setup_theme’ ); function wpse27586_setup_theme() { add_custom_background(); add_custom_image_header( ‘some_callback_for_front’, ‘some_callback_for_admin’ ); } Add custom image header is more complex than it seems, so take a look in Twenty … Read more

my excerpts lack the ‘more’ link

If you want to output the $post->post_content you need to use the_content() function, the_excerpt() function outputs $post->post_excerpt, so if the post doesn’t have content on the excerpt field it doesn’t output nothing. A better solution should be a custom function that first checks for a user defined $post->post_excerpt and second for the $post->post_content and outputs … Read more

wp_nav_menu with default pages menu

I faced that problem in the past, however I remember my problem was the first link didn’t have a class, after some research I solved it working with a structure similar to this one, take a look and let me know if it works 🙂 <ul> <?php wp_list_pages(‘title_li=’); ?> </ul> UPDATED….

Present Color Schemes to Clients

What exactly and better will be is to submit the dropdown and check which color is submitted. Based on that particular color chose your css file. e.g. you create 3 css files named as blue-bg.css, green-bg.css and black-bg.css then just put the related colors in those css files. e.g. body { background-color: blue; // same … Read more