Constant statement in Word Press

Discussion in 'WordPress' started by Blonde Jon, Jul 27, 2006.

  1. #1
    I have a friend of mine that is wanting to have a constant statement before the posts on his blog. Do any of you know of a plugin or something that would keep a statement on the top of the posts like that? I was looking for a plugin, but all I found were random quote plugins, any input appreciated.

    Thanks
     
    Blonde Jon, Jul 27, 2006 IP
  2. andheresjohnny

    andheresjohnny Well-Known Member

    Messages:
    964
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    120
    #2
    Blonde Jon,

    If your friend knows PHP and HTML, he could go into the wordpress "index.php' file and insert code at the top of the file immediately after the first line "<?php get_header(); ?>". I did this to get "sticky" stuff to appear before the first post on all my pages. In my case I'm using a modifed version of the wordpress default theme.

    If you go this route BE SURE to make a BACKUP COPY of the file first in case something gets screwed up in the code. Making a mistake could render your blog unusable, in which case you just use your backup to get up and running again.


    If you can't or don't want to mess directly with the code, the next best thing you can do is to make an entire post "sticky". This means that the same post or posts will always appear first on your pages before the rest of the ever-changing posts. There are several wordpress plugins that are supposed to allow this functionality, though I've never tried any of them. The one that I have heard about is found here.

    There may be a plugin that will insert regular text above all the posts, but I've never heard of one.


    Good luck.
     
    andheresjohnny, Jul 27, 2006 IP
  3. Blonde Jon

    Blonde Jon Active Member Affiliate Manager

    Messages:
    745
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    58
    #3
    I think I'll go the plugin route. I'm probably going to be helping my friend customize his blog. I've done it a couple of times. I do like you say, keep the default template and then go from there.

    Thanks for all the help.
     
    Blonde Jon, Jul 27, 2006 IP