A Remarkable Wordpress Sticky Plugin Alternative

Affordable Internet Marketing - Case Stevens shares his online marketing strategies, techniques, tips and tricks EVERY website owner, new or experienced, should know, because he wants you to be successful too!

Affordable Internet
Marketing Home
Valuable
Articles/Tutorials
Profitable
Resources
Comments
Policy
About Contact Me

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.

Bookmark for later reading: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • PlugIM
  • StumbleUpon
  • Furl
  • Ma.gnolia
  • Reddit
  • Sphinn
  • Google
  • Propeller

Related Articles:

4 Responses To: “A Remarkable Wordpress Sticky Plugin Alternative“

Steven says:
June 19th, 2007 at 4:25 pm

Thanks for the information. Haven’t seen this anywhere before.


Jerry The Web Marketing Guru says:
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.


Robin says:
May 28th, 2008 at 6:39 pm

Great walk through. If I can add any help it will be to definitely back up the original file you are working on before you make the changes in wordpress.

Thanks for the help.


Garden Gates says:
June 6th, 2008 at 8:56 am

Thanks Case. I’ve never heard of this one before. personally, I’d rather just upload a plugin and activate it than play around with code as one wrong line messes up the entire thing but that’s just me, a super-code newbie :p


Latest Posts: