Easy Wordpress Help: $7.50 via Paypal

Discussion in 'Programming' started by zsales, Jan 20, 2009.

  1. #1
    On my barack obama biography site, I want to have some static text at the top where the first post normally is. New posts will always be below this text. And this text should only show on the first page of the blog.

    I will pay $7.50 via paypal to the first person to link me to a plugin that does this as I can't seem to find one.

    Thanks.
     
    zsales, Jan 20, 2009 IP
  2. austin-G

    austin-G Peon

    Messages:
    435
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    austin-G, Jan 20, 2009 IP
  3. codebreaker

    codebreaker Well-Known Member

    Messages:
    281
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    you can just edit index.php and add the text there.
     
    codebreaker, Jan 20, 2009 IP
  4. zsales

    zsales Peon

    Messages:
    462
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 1
    #4
    Is there a plugin that allows me to insert the text without editing a file?

    Close, but I don't want it to be a linked post, just static text. Thanks though mate.
     
    zsales, Jan 20, 2009 IP
  5. jangkrikjr

    jangkrikjr Peon

    Messages:
    388
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    All information, tutorial and tools explain here


    http://www.nathanrice.net/blog/definitive-sticky-posts-guide-for-wordpress-27/
    Code (markup):
    Full with picture
     
    jangkrikjr, Jan 20, 2009 IP
  6. mtsandeep

    mtsandeep Active Member

    Messages:
    218
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    You will need to edit the index.php file atleast once to do this.
     
    mtsandeep, Jan 20, 2009 IP
  7. vinayendra

    vinayendra Active Member

    Messages:
    262
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Go to design>theme editor and select "index.php"

    Find the following text

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
    PHP:
    Add this before the abv text

    <?php if($_SERVER['REQUEST_URI']=="/")
    echo "Your Text here";
    ?>
    PHP:
    example:

    <?php if($_SERVER['REQUEST_URI']=="/")
    echo "obama takes the oath";
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
    PHP:
    Tested ... It worked fine my wordpress blog :)
     
    vinayendra, Jan 20, 2009 IP