WordPress.org

Ready to get started?Download WordPress

Forums

static information box on homepage (5 posts)

  1. StephSmith
    Member
    Posted 8 years ago #

    Please go easy on me, I don't know anything about writing scripts, feeds, computer language etc. Basic is good for me!

    I'm using the dafault template, and want to put a static box under the main header banner with a description about the site. I haven't created the box and contents yet, because I don't know what programme to use, or what to save it as etc. etc. How do I do this?

    Sorry if this has been covered before, but there's so much information out there I don't know where to start! I looked at the tutorials, and they're in too much detail for my novice mind.

    Steph

  2. spirit892
    Member
    Posted 8 years ago #

    Sorry if I am being a bit dumb, but can you give an example of a "static box"? I am having trouble picturing what you need help with. Thanks.

  3. lschofield
    Member
    Posted 8 years ago #

    If by "static box" you mean some fixed text that displays on every page, you could add it as HTML to your presentation template (this is the "presentation" tab in the dashboard, and you need to use the "theme editor"). For my site the "main template" contains the top of the page for all pages:

    <body>
    <div id="headerblock">
    <h1 id="header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
    <strong><?php bloginfo('description'); ?></strong></div> <!-- headerblock -->

    The "headerblock" contains the code which generates the top of a page. You could, as an example, enter some HTML and it would be rendered into each page that WordPress generates. Try inserting:

    Hey, a static box!

    before the closing "div" tag on the last line to see how it works.

    Side issue: if you enter your description in the "tagline" box under the "options" tab in the dashboard, this is what is placed in the header where you see bloginfo('description') in the example.

  4. StephSmith
    Member
    Posted 8 years ago #

    By a static box, basically I need a box positioned underneath the header banner with a description of the site that doesn't alter or move when posts are added. It's for the index page only. As I say I'm only a learner

    Thanks

  5. spencerp
    Member
    Posted 8 years ago #

    You want something like this? Of course this was a semi-quicky job though lol. Could add a background image and what not later.

    http://vindictivebastard.net/test101/

    Also please feel free to read the post about the fixes.. it will help get rid of the footer shifting problem in the footer an get the search button up beside the search form in IE...basically will help the theme look the same in IE and FF at same time... =)

    spencerp

    Just checked that box out in IE once quick, and noticed it's slightly to the left, but that could most likely be worked around then.. but atleast it's not too far off. =)

    Also just checked else where through, say, like the post page..it kinda throws off the margins or padding a tad for the post title drops below a bit farther downwards then the home page's post title...but it's ok. Just be some some css tweaking again or something... =)

    Remember, I just threw this box together rather quickly for an example.. =)

Topic Closed

This topic has been closed to new replies.

About this Topic