• chimesnews

    (@chimesnews)


    I want to introduce my site with text that stays on top of the page, before the blogs. Where do I add text?
    I am using the Anarchy theme and cant figure out if I need to add code anywhere to be able to do this.

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • jetshack

    (@jetshack)

    you could add it directly to the tempalte index above the loop.

    Thread Starter chimesnews

    (@chimesnews)

    I have tried. I either cant find the loop or something. I have tried in the header and index, but my text soesnt display on the page.

    jetshack

    (@jetshack)

    you’re looking for something that looks like
    <?php if (have_posts()) : ?>

    you’d then put whatever you wanted to appear above that above it… for instance… here’s an example from something I’m working on right now…

    <?php get_header(); ?>
    <div id="contentwrapper">
    <div id="topcontentcolumn"> <img src="<?php echo getRandomImage($path_to_images, $default_img) ?>" alt=""></div>
    <div id="contentcolumn">
    <div class="innertube">
    <?php if (have_posts()) : ?>

    where the stuff in the
    <div id="topcontentcolumn">
    has been added to show up above the posts.

    Thread Starter chimesnews

    (@chimesnews)

    I put text above the loop as shown. The problem is, when I view the page- The text doesnt appear on the site when I view it. Is there a code I need to add to my theme somewhere in order to allow me to post a main text above the loop?

    http://www.familyministriescenter.org/fmcyouth

    Maybe you need to do this: ” ?> text...text <?php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to get main text at top-not a post’ is closed to new replies.