QuickOnlineTips Newsletter | |
- How to Change / Shorten Excerpt Length in WordPress
- How to Add Unique QR Code to All WordPress Blog Posts Easily
- How to Use PAD Files to Get Links
How to Change / Shorten Excerpt Length in WordPress Posted: 06 Mar 2011 02:12 AM PST Most index pages, archive pages in WordPress display excerpts of 55 words. How can you change, or shorten excerpt length (or even increase it) easily. If you look inside your WordPress theme index.php or archive.php, you will find this excerpt tag coming beneath the post title, which displays post excerpt in the front page or archives, category pages.
It will display 55 words by default and then end abruptly with [...]. So how can you change excerpt length? Change excerpt length in WordPressEdit your theme functions file functions.php and add the following code at the bottom just above the last line of the code function new_excerpt_length($length) { return 20; } add_filter('excerpt_length', 'new_excerpt_length'); Remember to place it just above the last line of the code Its a good idea to backup your themes file before editing it, as any error will give major WordPress theme errors. And then you would have to FTP your site, and restore the functions.php to the previous one. |
How to Add Unique QR Code to All WordPress Blog Posts Easily Posted: 06 Mar 2011 12:51 AM PST Want to add a unique QR Code to all WordPress blog posts? QR codes are a great way to let mobile users use QR code readers to visit urls and get custom experiences in a click. Add QR CodeUse Google Chart API to generate unique QR codes for each WordPress blog post. Simply add the following code in the your single.php file where you want the QR code to appear.
QR Code ParametersHere is the break up of the QR code parameters which you can change
This will add QR codes of size 100px x 100px to your site. You can change the 100 to 200 or whatever pixel size you like as per your blog template. But remember that very small QR codes are difficult to read by many QR code readers. So for the main page, I can use this Scan it with your QR code scanner and see if it works. |
How to Use PAD Files to Get Links Posted: 05 Mar 2011 08:44 PM PST Guest post by Ramandeep Singh. In this article I have shared that what are PAD files and how to use those PAD file to get successful links and better SEO. |
You are subscribed to email updates from Quick Online Tips To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
0 comments:
Post a Comment