A Remarkable Wordpress Sticky Plugin Alternative
If you're new here, you may want to Subscribe to my Updates or to my RSS feed. Thanks for visiting!
If you run a blog powered by Wordpress, you have an option to install a Sticky plugins that causes a certain post to stay on top of your home page.
There are several Sticky Plugins and here’s the one called Adhesive.
But …
I have never used them. Because I want to control exactly what’s happening. Therefore I simply add an extra webpage to my blog that I can fill with whatever I want by just using a little bit of HTML.
And it’s really easy to do that in the standard Kubrick theme.
Just find index.php in wp-content/themes/default and make a safety copy first.
Then open index.php in your text editor.
In index.php the first two lines say
<?php get_header(); ?>
<div id=”content” class=”narrowcolumn”>
After that, you just add:
<?php /* If this is the frontpage */ if ( is_home() ) {
readfile( ’somefile.php’);
}?>
and upload.
Then create the page called somefile.php with whatever you like and upload it to your root directory.
You can include a sign up form there or a just link to it. Personally I prefer separate sign up forms, because you can use them everywhere!
You could also create a link in your sidebar pointing to the sign up form that shows up on every page except the home page.
Just add a link in the sidebar (preferably just under your ‘home page’
link:
<? if (!is_home()) {
echo “<p><a href=\”#ref\” onclick=\”window.open(’http://yourdomain.com/yoursignupform.php’,
‘520′,’toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,
resizable=yes,width=530, height=680′)\”>Receive Updates By
Email</a><br /><strong>Plus Your Incentive For
Signing Up</strong></p>”;
}
?>
Yeah, it’s a pop up window. You can make it an ordinary one.
Of course you have to replace http://yourdomain.com/yoursignupform.php by the path to your sign up form.
And you have to take the line breaks out that I had to insert to display this properly.
Try it.
Don’t forget, always create a safety copy first so you can restore the situation if anything goes wrong.
P.S.
Many people ask questions about adding a form to their blog.
You can add one using the instructions above, but Karl Warren has created a plugin to add an opt-in form that you may want to check out.
Related Articles:
- Powerful Alternative For Wordpress Adsense Plugins
- Do You Have A Link To Your Home Page In Wordpress?
- Customized Title Optimization - Wordpress Plugin Alternative
- Do You Make These Blogging Mistakes?
- Search Engine Optimization Wordpress Blogs
- Wordpress membership plugin
- Increase Blog Traffic: Wordpress Trackback Video




















June 19th, 2007 at 4:25 pm
Thanks for the information. Haven’t seen this anywhere before.
April 30th, 2008 at 8:09 pm
This site give you steps about a remarkable wordpress sticky plugin alternative.Don’t forget, always create a safety copy first so you can restore the situation if anything goes wrong.This instruction is must to keep in mind whenever you will create plugin.
Thanks for giving proper information.