• Greetings… here’s a very simple question from a newbie..

    I’m getting my head around customizing themes pretty well, but cannot find a way to very simply have either a text field, or a post, remain at the top of a page. This would be like the introduction or welcome, and I do not want it to scroll off as new posts are submitted. Something, maybe a few paragraphs, just below the header that would not change. Perhaps part of the header? Can a text field be inserted above the first post?

    Any ideas, direction or resources would be greatly appreciated….

    Mark
    Las Vegas

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    if the text you plan on showing is the same on every page (always static) you can easily add it to your theme’s header.php
    note that if you do this, it will always show the same thing on every page (that uses header.php)

    but if you like the text to be different on some pages, and sometimes not even visible at all, then i would suggest adding your static textbox to the different pages in your theme

    examples:
    welcome text visible on home —> add textbox to home.php
    static text on category view —> add textbox to category.php
    static text on post view —> add textbox to single.php

    depending on where you want your text you could place your new textbox
    example:

    <div id="mystatictext">welcome to my website</div>

    just after

    <?php get_header(); ?>

    or right after

    <div id="main">

    depending on your theme.

    also see this image to understand which theme files are used for showing your pages

    And if you’re talking about “sticky” posts, there’s a plugin that can do that.

    Thread Starter 813466

    Wow… that was QUICK. Very cool, thanks very much.

    It’s gonna take some tweaking; it’s not sitting in the layout very well, but is there. I could not find any reference to static text anywhere… that’ll get me going.

    And I don’t know what a sticky post is, so I wasn’t talking about it, but I’ll sure look into it now.

    Much appreciated.

    MD

    And I don’t know what a sticky post is, so I wasn’t talking about it, but I’ll sure look into it now.

    It’s a POST that stays at the top, rather than text, such as a navigation menu in the header or the title above each page.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Permenant text’ is closed to new replies.