SimplePortal

Customization => Themes and Graphics => Topic started by: Cholo on February 27, 2011, 04:09:58 AM

Title: How to link Logo properly
Post by: Cholo on February 27, 2011, 04:09:58 AM
Hi guys, I'm working on a custom theme of mine and I'm trying to figure out how to make the header_logo_url linked to the home page of the portal. Of course, if the portal is turned off, I'll want the image to be linked to the forum index.  Could anyone help me with this? I appreciate it. 

Edit: Ok, after reading through some docs here, I'm using this bit of code to link my header_logo to the portal page
Code: [Select]
<a href="', ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl), '"><img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" class="logo" /></a>

The problem is, this is sending me to "mywebsite.com/h". Any ideas? 
Title: Re: How to link Logo properly
Post by: AngelinaBelle on February 28, 2011, 07:34:12 AM
Code: [Select]
<a href="', ( ($modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']))  ? $modSettings['sp_standalone_url'] : $scripturl), '"><img src="', $context['header_logo_url_html_safe'], '" alt="', $context['forum_name_html_safe'], '" class="logo" /></a>
Title: Re: How to link Logo properly
Post by: Cholo on March 06, 2011, 01:26:50 PM
Thank you!
SimplePortal 2.3.8 © 2008-2024, SimplePortal