Jump to content

How to change the link in the logo

Featured Replies

Posted

 

 

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

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

  • Author

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?

52 minutes ago, Steve-Ray said:

{setting="base_url"}

Change that to your desired URL in the <a href..... portions of the code.

  • Author

I replaced "base_url" with the url that I wanted to use (http://mappersunited.com/index.php?/forums/) and when I hit save a message came up stating that the file could not be saved.  Actually it crashed the site until I restored it back to the original.

Well, that's to be expected if you did just change "base_url"

You need to change this:

{setting="base_url"} 

to this:

 http://mappersunited.com/index.php?/forums/

 

  • Author

LOL, ok I got it now!!

Works exactly like I want it to.  Big Thank You!

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

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

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.

  • 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?

Bump - It's probably something easy but I'm not seeing it.

On 11 May 2016 at 9:41 PM, omgenghis said:

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?

Im not following what you're trying to do here?

Archived

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

Recently Browsing 0

  • No registered users viewing this page.