Thứ Năm, 22 tháng 12, 2016

Tắt tất cả các thông báo update trong wordpress

// hide update notifications
function remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes

Thứ Tư, 14 tháng 12, 2016

Chèn hình ảnh website vào các thiết bị máy tính, tablet, mobile làm demo

http://magicmockups.com

Chèn bài viết liên quan giữa bài viết

Đầu tiên cài plugin: https://wordpress.org/plugins/related-posts-by-taxonomy/

Sau đó chèn đoạn code này vào file function.php



function count_paragraph( $namhp_related, $paragraph_related_namhp, $content ) {
$closing_p = '</p>';
$paragraphs = explode( $closing_p, $content );
foreach ($paragraphs as $index => $paragraph) {
if ( trim( $paragraph ) ) {
$paragraphs[$index] .= $closing_p;
}
if ( $paragraph_related_namhp == $index + 1 ) {
$paragraphs[$index] .= $namhp_related;
}
}
return implode( '', $paragraphs );
}



add_filter( 'the_content', 'prefix_insert_post_ads' );
function prefix_insert_post_ads( $content ) {
$related_posts= do_shortcode('[related_posts_by_tax title=""]');
if ( is_single() ) {
return count_paragraph( $related_posts, 1, $content );
}
return $content;
}

Thứ Năm, 1 tháng 12, 2016

Plugin tạo comment cho từng ảnh

https://wordpress.org/plugins/social-gallery-lite
Plugin này giúp tạo comment, like facebook cho từng ảnh

Thứ Bảy, 26 tháng 11, 2016

Ứng dụng chát có app điện thoại cho website

https://chatra.io là 1 ứng dụng chát trực tuyến trên website

có khả năng hỗ trợ chát trên điện thoại

khá tiện lợi.

Thứ Năm, 24 tháng 11, 2016

Tạo hiệu ứng rê chuột ra liên kết mạng nhện, chấm, bong bóng...

1 trang web có thể tạo cho bạn những hiệu ứng rất bắt mắt khi bạn rê chuột vào 1 background nào đó
http://vincentgarreau.com/particles.js