• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
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.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

print working directory ( pwd , PWD , OLDPWD ) in Linux / Unix

tr command to convert lines to space , tab and vertical tab

Jpeg Image Optimization / Compress on Linux

yum : how to find rpm package which has certain command or file

remove html tags by using sed command

How to set motd in linux

Install libjpegtran by using yum command in CentOS 6.x

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

Change the default port number of ssh server

configure: error: C++ compiler cannot create executables

How to increase Password Expire date without resetting the password

Error installing rails

How to install korn shell ksh in Linux

Convert video file into gif file through command line in linux

Password prompt in single user mode is not secure : CentOS/Red Hat

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

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