• Skip to primary navigation
  • Skip to main content
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to add excerpt on wordpress thematic child theme

January 26, 2014 by Sharad Chhetri Leave a Comment

In this post we will learn,how to add excerpt on wordpress thematic child theme . Thematic framework is highly SEO optimized and it is also free.It is very simple,clean and lightweight. While working on Thematic framework,I enjoyed a lot.From scratch,I started creating a child theme on Thematic framework and modified many things.There was one thing on your blog which you always consider that is excerpt.

What is excerpt ?
The excerpt are a brief post summary.You can see in home page of our blog,we are using excerpt.
Excerpt helps to load webpage faster as compared to complete post on home page. In WordPress,you can put excerpt in given below pages
(1) Home page
(2) Archive Page
(3) Search Page
(4) Category Page
(5) Tag pages

After installing thematic framework, I copied already available child theme called thematicsamplechildtheme. This child theme is already present inside theme directory.The thematicsamplechildtheme child theme has only 3 files style.css,functions.php and readme.txt .
In WordPress child theme we generally work on style.css and functions.php .

To put excerpt in Thematic child theme, edit the functions.php file and add below given code

function childtheme_home_excerpts($content) {
 if (is_home() )
 $content = 'excerpt';
  return $content;
}
add_filter('thematic_content', 'childtheme_home_excerpts');

/** Below code is for Read more link **/

function new_excerpt_more( $more ) {
        return ' Read More';
}
add_filter( 'excerpt_more', 'new_excerpt_more' );

After using the above given code,the excerpt will be applied.Check in your blog’s home page. The post is now in short summary with Read More link .

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to add favicon in WordPress theme and child theme
  2. How to add before entry widget in Genesis Child Theme
  3. How to customize footer credit links in Genesis Child Theme
  4. show post excerpt in atoms feed of octopress
  5. Create fixed top navigation menu bar on wordpress theme
  6. How To Add duckduckgo Search engine in WordPress Blog or website
  7. Add swap file in linux without reboot after OS installation
  8. How to add/install Ubuntu fonts in CentOS/Red Hat Linux
  9. Hide and disable URL field in comment form in WordPress [ Plugin ]
  10. How to install wordpress on LAMP stack ( Ubuntu 14.04 LTS Server )

Filed Under: Wordpress Tagged With: wordpress

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy