Blog
Kiến thức làm web
Bài viết và hướng dẫn về WordPress, Laravel, hosting, bảo mật và tối ưu website.
491 bài viết · trang 25/41
Tổng hợp các Sublime Text Package cho Web developer
1, Emmet. Đầu tiên phải kể đến là Package Emmet. Đây là package cho phép chúng ta gõ tắt code HTML&CSS cách dùng là dùng các cú pháp gõ tắt mà emmet hỗ trợ sau đó ấn tab để th...
Get Permalink By Page Name Or Slug
We used to write custom functions to return these values until we discovered you can pass get_permalink a function that will return the ID. Examples.. Get Permalink By Page N...
Creating full width (100% ) container inside fixed width container.
Some times we need to add a full width containers (which spans 100% of window) inside a container which has a fixed width and aligned center. Following code helps to achieve the...
Customize the_archive_title() . No Plugins
Rebuild the title for all the variants used in the original get_the_archive_title() function: // Return an alternate title, without prefix, for every type used in the get_the_...
Load More Posts with AJAX. Step by Step Tutorial. No plugins.
Creating Load More button for WordPress is really simple. As an option I will show you how to load more posts on scroll When my blog subscriber asked me about a such tutorial, I...
HƯỚNG DẪN CÀI ĐẶT WORDPRESS MULTISITE
Việc cài đặt WordPress Multisite rất đơn giản mà chúng ta chỉ cần làm với 2 bước là xong. Trong bài hướng dẫn này mình sẽ làm trên một website mẹ với tên miền là thachpham.net, bạn...
Get a category name/slug/id for a post or archive page
<?php if ( is_single() ) { $cats = get_the_category(); $cat = $cats[0]; // let's just assume the post has one category } else { // category archives $cat =...
How to use HTML 5 Form Validation on Contact Form 7 Plugin ?
By default, the contact form 7 plugin uses ajax validation to check the form entries. You can instantaneously validate some common fields like email, text for blank or invalid entr...
Removing Paragraph Tags from the_excerpt(), Properly
You may have Googled “How to remove the p tags from the_excerpt()” or some variation and read through a bunch of results. There are some fancy workarounds, such as a stripping them...
How to revert “Never translate this site” in Chrome?
1. Open Chrome on the device that has the problem (smartphone, computer, tablet) 2. Enter this address: chrome://about 3. Click chrome://translate-internals 4. In Untranslated s...
Chia cột với float và clear float
Chào mừng các bạn đến với một kỹ thuật rất quan trọng trong CSS Layout, mà đã từng làm nhiều người phải “sợ” nó, đó chính là học cách chia cột trên CSS. Có thể nói rằng, website bạ...
Dàn trang với CSS Flexbox toàn tập
Nguồn : thachpham.com https://www.youtube.com/watch?v=DPwHRceskTA&feature=youtu.be Trong CSS, từ trước tới nay nếu chúng ta muốn dàn layout của trang thì sẽ sử dụng các th...
Trao đổi về dự án của bạn!