Forums

Static content on main page, under header (5 posts)

  1. passedover
    Member
    Posted 3 years ago #

    Is there a way to have some sort of static content under the header (but not wrapped with the header) and above the main content of the page? Something that could, if nothing else, act as a 'spacer' between the header and the main blog content. I would probably add graphical and text content as an additional menu of sorts but I just need to know which file to edit and at what point in the file to add data.

    Thanks.

  2. moshu
    Member
    Posted 3 years ago #

    Normally, the "main page" mentioned in your title is the index.php template file of your theme - unless you use a home.php file.
    Which means: you can hardcode your "static content" in that file, just before The Loop starts.

    To achieve similar effect I often use the get-a-post plugin and put my 'static content' ina Page (excluded from being listed) so I can edit it any time from the admin panel.

  3. maerk
    Member
    Posted 3 years ago #

    Putting it into header.php is probably a good idea, after the closing </div> tag (the one that closes the header div).

  4. maerk
    Member
    Posted 3 years ago #

    But also moshu's solution would work ;) Got there before i could click send!

  5. SammyRusso
    Member
    Posted 3 years ago #

    Download the adhesive plugin:
    http://wp-plugins.net/plugin/Adhesive/

    By using this plugin.. you can create a post and designate it as a sticky which will keep the post at the top of the index page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.