Jump to content
WebFlake
  • 0

Text and Logo in ipsfocus theme


AntiMetaman

Question

8 answers to this question

Recommended Posts

  • 0

This solution works the best and takes the logo and text from the settings. You can use html tags to change font and format of the title.

Replace the core->front->log with this:

<a href='{setting="base_url"}' class='logo' accesskey='1'>
  {{if \IPS\Theme::i()->logo['front']['url'] !== null }}
      {{$logo = \IPS\File::get( 'core_Theme', \IPS\Theme::i()->logo['front']['url'] )->url;}}
    <img src="{$logo}" alt='{setting="board_name" escape="true"}' />
  {{endif}}
    <span>
        <span class='logo-name'>{{if theme.focus_logo}}{theme="focus_logo"}{{else}}{setting="board_name"}{{endif}}</span>
        {{if theme.focus_slogan}}<span class='logo-slogan'>{theme="focus_slogan"}</span>{{endif}}
    </span>
</a>

 

Link to comment
Share on other sites

  • 1
<div class="logo-wrap">
<a href="https://duelistsunite.org/forum/" class="logo" accesskey="1"><img src="https://duelistsunite.org/forum/uploads/monthly_2018_08/android-icon-72x72.png.4469178c619526616839a2738e0cb145.png" alt="Duelists Unite"><h2>   DUELISTS UNITE</h2></a>
</div>

 

Edited by Jeffrey
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

  • 0
7 hours ago, Jeffrey said:

core -> front -> global -> logo


<a href='{setting="base_url"}' id='elLogo' accesskey='1'><img src="{$logo}" alt='{setting="board_name" escape="true"}'></a>
<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1'>{setting="board_name"}</a>

 

Are you sure the id is 'elLogo' and not 'Logo'? That's what is currently in the template. The second line isn't in the template. I copy pasted these two and saved. Now, when I try to load my site, it's stuck on loading.

Link to comment
Share on other sites

  • 0

That's the default IPS logo template. Click the "Revert" button and it will give you the same code. You asked for an image to be next to some text and that's what the code does.

  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

  • 0

Just so we are in the same page, this is the original code under core->front->logo:

{{if \IPS\Theme::i()->logo['front']['url'] !== null }}
{{$logo = \IPS\File::get( 'core_Theme', \IPS\Theme::i()->logo['front']['url'] )->url;}}
<a href='{setting="base_url"}' class='logo' accesskey='1'><img src="{$logo}" alt='{setting="board_name" escape="true"}'></a>
{{else}}
<a href='{setting="base_url"}' class='logo' accesskey='1'>
	<span>
		<span class='logo-name'>{{if theme.focus_logo}}{theme="focus_logo"}{{else}}{setting="board_name"}{{endif}}</span>
		{{if theme.focus_slogan}}<span class='logo-slogan'>{theme="focus_slogan"}</span>{{endif}}
	</span>
</a>
{{endif}}

I replaced line 3 with the two lines you posted. Once I do that and save, the forum no longer loads and goes to timeout.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...