WP-Fragment makes it easy to set up little “fragments” of text which can be displayed in your pages, posts, sidebar and/or template files.
Why would you want to do such a thing? Well, maybe you won’t… Here are a few instances where fragments come in handy. (or simply watch the WP-Fragment Overview video)
- If your theme’s home page has hand coded blocks of text.
- If you use a slogan or text that gets repeated many places throughout the site.
- If you use the same javascript code or images multiple times throughout your site.
Getting Started
(Or simply watch the WP-Fragment Installation video)
- Download the plugin (zip file)
- Unzip the file and upload the wp-fragement folder to your WordPress plugin folder
- Activate the plugin
- Go to Settings > WP-Fragment
- Here you will be able to Create, Edit, and Delete fragments
Using WP-Fragment
There are two different ways to add a fragment to your site. By adding a “short code” to your pages/posts or by adding a function to your templates/sidebar widgets. Below are the most basic examples. For a more in depth explanation, check out WP-Fragment Advanced Usage (and you guessed it, there’s a handy little video there for you to watch)
Adding a fragment to your pages/posts
[fragment name="FragmentName"] (where FragmentName is the name of a fragment you've created)
Adding a fragment to your template or sidebar widget
<?php
if(function_exists('fragment'))
fragment("FragmentName");
//(where FragmentName is the name of a fragment you've created)
?>
Again, the above will get you up and running. To do more advanced cool stuff, go to the WP-Fragment Advanced Usage page.
Documentation / More Info
- WP-Fragment Overview
- WP-Fragment Installation
- WP-Fragment Advanced Usage
- FAQ (Frequently Asked Questions)
- Revision History (and future plans)
Download
hello####
Get a FREE Cheat Sheet on using this plugin
You’ll also be notified of WP-Fragment updates and you’ll get valuable Internet, Business and Marketing tips.
hello ####
Donate
If you really dig this plugin and really feel the need to pay for it, you can send money (via PayPal) here.
Or, better yet, simply add a link to this page on your blog and donate a few cans of food to your local food shelf and we’ll call it even. Deal?