Hi – Put it before the loop, which usually starts as
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
Do a little trial and error until you find the place you are happy with.
Thanks, How do I code it so it appears? I tried to copy it before the loop and it didn’t appear on my site. Do I need to do some kind of <div> ?
You don’t need a div, that’s just for styling. If you are not inside PHP tags (<?php ?>) then it should just pick up the text as HTML and display it.
Can you post the top half of your code up to and including the
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
Also, are you using a static homepage?
hi – If you want to experiment some more, you can try this
<div id="welcome">
<h3>Welcome to my site</h3>
<p>Here are some things to know</p>
<p>Here are some more</p>
</h3>
</div>
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post(); ?>
This shows where to put the code in relation to the loop. (i.e. above the loop)
You can now style your block in the stylesheet by referring to
#welcome for the whole block
#welcome h3 for the headline
#welcome p for the paragraphs