Jump to content

How to change the link in the logo


Cascadia

Recommended Posts

 

 

changelink.png

 

I am just using the above image as an example......

This is something that is automatic (I think) on all sites and obviously varies for every site out there.  My question is where do I go to modify the actual embedded url to what I want it to point to?

Thanks

Link to comment
Share on other sites

7 minutes ago, Steve-Ray said:

 

 

changelink.png

 

I am just using the above image as an example......

This is something that is automatic (I think) on all sites and obviously varies for every site out there.  My question is where do I go to modify the actual embedded url to what I want it to point to?

Thanks

admincp >> customizations >> themes >> far right of theme name click the Edit HTML/CSS button >> templates tab

scroll down until see logo

Link to comment
Share on other sites

Thanks Steve00.

I found the code but not sure what to change at this point but I suspect it is this line (<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1' class='logo textLogo'><span class='position'>) and specifically the base_url.
 

{{if \IPS\Theme::i()->logo['front']['url'] !== null }}
{{$logo = \IPS\File::get( 'core_Theme', \IPS\Theme::i()->logo['front']['url'] )->url;}}

    {{if theme.ipbf_mobileTextLogo}}
    
    <a href='{setting="base_url"}' id='elLogo' accesskey='1' class='logo justImage ipsResponsive_showDesktop'><span class='position'><img src="{$logo}" alt='{setting="board_name" escape="true"}'></span></a>
    <a href='{setting="base_url"}' id='elSiteTitle' accesskey='1' class='logo textLogo ipsResponsive_hideDesktop ipsResponsive_block'><span class='position'>{{if theme.ipbf_logoName}}{theme="ipbf_logoName"}{{else}}{setting="board_name"}{{endif}}</span></a>
    
    {{else}}
    
    <a href='{setting="base_url"}' id='elLogo' accesskey='1' class='logo justImage'><span class='position'><img src="{$logo}" alt='{setting="board_name" escape="true"}'></span></a>
    
    {{endif}}

{{else}}
<a href='{setting="base_url"}' id='elSiteTitle' accesskey='1' class='logo textLogo'><span class='position'>
 
    {{if theme.ipbf_miniLogo}}<img src='{theme="ipbf_textLogoImage"}' alt='' />{{endif}}
    {{if theme.ipbf_logoSlogan}}<span class='textWithImage'>{{endif}}
        {{if theme.ipbf_logoName}}{theme="ipbf_logoName"}{{else}}{setting="board_name"}{{endif}}
    {{if theme.ipbf_logoSlogan}}<span class='logoSlogan'>{theme="ipbf_logoSlogan"}</span></span>{{endif}}
 
</span></a>
{{endif}}

What do I do at this point?  Do I simply add the url that I want to use and where?

Link to comment
Share on other sites

3 minutes ago, Daniel F said:

Have you tried to  use {setting=http://yourdomain}?

AFAIK the system shouldn't allow you to save this.

Correct, it doesn't if you change just base_url.

Screenshot_11.png

BUT if you change "base_url", it saves and you end up with this:

Screenshot_12.png

 

Can't reproduce the side effect mentioned above (borked site) though.

To clarify:

Change {setting="base_url"} to {setting="http://whatever"} = no save.

Change {setting="base_url"} to {setting=http://whatever} = save.

Link to comment
Share on other sites

  • 1 month later...

I've changed the {setting="base_url"} to the url of the logo I want to display. (I have someone who creates them for our site). When someone clicks the logo now to return to the main index, it will cause a 404 error. It's appending the URL of the logo to the end of the the forum's URL. Is there a way to still click the logo to return to the index and also have the URL pointing to the location of the logo?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...