Using common slider in all sites

Do all your sub-sites use the same theme? If they do, then the most light-weight solution would be for you to hard-code the slider in your template file. This will give you the flexibility of doing whatever you want with your slides and the script you’re going to use, but at the same time it … Read more

How to add button to top of theme customizer?

If you take a look at the source code of this part … do_action( ‘customize_controls_print_styles’ ); do_action( ‘customize_controls_print_scripts’ ); ?> </head> <body class=”<?php echo esc_attr( $body_class ); ?>”> <div class=”wp-full-overlay expanded”> <form id=”customize-controls” class=”wrap wp-full-overlay-sidebar”> <div id=”customize-header-actions” class=”wp-full-overlay-header”> <?php $save_text = $wp_customize->is_theme_active() ? __( ‘Save &amp; Publish’ ) : __( ‘Save &amp; Activate’ ); submit_button( … Read more

Can’t Auto-Update, but permissions are good?

If you’re pretty sure about that the file owner of wordpress folder is as same as that one who runs apache. (use ps aux|grep ‘httpd’ or ps aux|grep ‘apache’) Here is a lousy solution for you: function force_use_direct_fs($method,$args){ if($method != ‘direct’) $method = ‘direct’; return $method; } add_filter(‘filesystem_method’,’force_use_direct_fs’,10,2); Why Would WordPress Request FTP Credentials wp-admin/includes/file.php … Read more

Slider do not add alt attribute. Cant get alt attribute from a media library!

When I test get_the_post_thumbnail (also the_post_thumbnail) on WordPress 3.5.1, the alt attribute is added as it should be. If you look at the source, you will see that get_the_post_thumbnail uses wp_get_attachment_image which does add that alt attribute. By default, that attribute is the image file name but it can be edited from wp-admin->Media to be … Read more