• Menu
  • Skip to main content
  • Skip to primary sidebar

VANMY.NET

You are here: Home / Wordpress / Làm đẹp cho nút “Read More…” của Child Theme Genesis

Làm đẹp cho nút “Read More…” của Child Theme Genesis

Với themes genesis, thông thường một đoạn mô tả của bài post chỉ gồm một số từ nhất định và  sẽ có nút “Read more” để người dùng click vào để đọc tiếp, thế nhưng nhiều child themes genesis lại có nút “read more” quá đơn giản và ít được bắt mắt.

Dưới đây là cách làm đẹp cho nút “Read more”, ai cũng có thể làm theo vì nó rất đơn giản.

1. Thay thế functions mặc định

Mở file functions.php của child theme của genesis và thêm vào đoạn code

add_filter( 'excerpt_more', 'add_excerpt_more' );
function add_excerpt_more( $more ) {
return '...Read more';
}

Bạn có thể thay thế cụm từ Read more thành từ bạn muốn, ví dụ: Đọc tiếp.

2. Hoàn thành với CSS

Mở file style.css và thêm vào đoạn code sau:

.home .entry-content a {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: 0 0 #F1F1F1;
color: #716E6E;
padding: 3px 5px 5px;
text-decoration: none;}
.home .entry-content a:hover {
background: #000;
color: #fff;
}

3. Kết quả

r1

:misdoubt:

Bài viết liên quan:

  1. Genesis Child Themes miễn phí từ Studiopress
  2. Plugin thêm cột nội dung cho Genesis
  3. Một số themes miễn phí cho Genesis
  4. 21 responsive theme chất lượng cao dành cho wordpress
Previous Post: « Genesis Child Themes miễn phí từ Studiopress
Next Post: Plugin thêm nút Like của Facebook vào trong WordPress »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

  • Home
  • WordPress
    • Plugins
    • Themes
  • SEO
    • Onpage
    • Offpage
  • Social Media
    • Google Plus
    • Facebook
  • Blogging
    • Domain
    • Hosting
    • Khác
  • Liên hệ
  • Site map

Copyright 2009 by vanmy.net