News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Adding HTML to SMF

Started by folding, May 17, 2010, 10:11:42 PM

Previous topic - Next topic

folding

I am trying to add

<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>

To the top of my SMF forum (above the header) with no luck.

I keep getting a The file you tried to save generated the following error:
Parse error: syntax error, unexpected '<' in index.template.php on line 157

error  ???

Thanks!

smp420

Try


echo '
<div id="navcontainer">
<ul id="navlist"><li id="active"><a href="#" id="current">Item one</a></li>
<li><a href="#">Item two</a></li>
<li><a href="#">Item three</a></li>
<li><a href="#">Item four</a></li>
<li><a href="#">Item five</a></li>
</ul>
</div>';
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

folding


winky100

folding,

What file do you add that code to?

Thanks

smp420

If you want it to affect every page then you would edit index.template.php.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Advertisement: