Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Scrimps - lokakuu 04, 2011, 10:48:33 AP

Otsikko: How do you remove the text "logo" for your site at the top of Curve?
Kirjoitti: Scrimps - lokakuu 04, 2011, 10:48:33 AP
I am currently modifying the SMF 2.0 theme Curve to fit with my website. Here is a preview of what I am going for http://i.imgur.com/dsnZk.jpg

Now almost everything is skinned. I have yet to put in the header. However, I am wondering what block of code I need to remove, to remove the text logo of my site, which displays above the "hello user" message on the curve theme.
Otsikko: Re: How do you remove the text "logo" for your site at the top of Curve?
Kirjoitti: Antechinus - lokakuu 04, 2011, 07:43:31 IP
This:

<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>


Do note though that it really is a good idea to have whatever logo you use designated as an <h1>, as well as being linked to your home page.
Otsikko: Re: How do you remove the text "logo" for your site at the top of Curve?
Kirjoitti: Scrimps - lokakuu 05, 2011, 01:18:10 IP
Lainaus käyttäjältä: Antechinus - lokakuu 04, 2011, 07:43:31 IP
This:

<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>


Do note though that it really is a good idea to have whatever logo you use designated as an <h1>, as well as being linked to your home page.

This gave a template parse error and broke the forum until I re-edited the file from the ftp.
Otsikko: Re: How do you remove the text "logo" for your site at the top of Curve?
Kirjoitti: Antechinus - lokakuu 05, 2011, 05:01:18 IP
Remove exactly what I posted. Do NOT remove the '; that comes after the </h1>