News:

Wondering if this will always be free?  See why free is better.

Main Menu

Missing H1 & H2

Started by ATX1976, September 30, 2014, 06:55:28 AM

Previous topic - Next topic

Antechinus

Sure. What I did was change the PHP so that instead of calling either the forum name or the banner image (if one was available) it calls both if both are available.

What exactly are you looking for in terms of a result?

And yes, that code should work if pasted into the same location in index.template.php.

ATX1976

Well, since my theme has the "forum_title" in the image, I was just hoping to add a real H1 tag. I'm mainly concerned about the home page but site wide H1s would be great. Wasn't sure if a mod like this would do the trick. http://custom.simplemachines.org/mods/index.php?mod=2618

Antechinus

Ok, so assuming you are using the default theme and setting the banner image in admin, you want something like this:

<h1 id="forumtitle">
<span>', $context['page_title_html_safe'], '</span>
<a href="', $scripturl, '"><img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name'], '" /></a>
</h1>


Then you can set something on the span to hide it, like negative text-indent or z-index or whatever.


Advertisement: