Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Cascadia Posted March 22, 2016 Posted March 22, 2016 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
steve00 Posted March 22, 2016 Posted March 22, 2016 7 minutes ago, Steve-Ray said: 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
Cascadia Posted March 22, 2016 Author Posted March 22, 2016 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?
Nathan Explosion Posted March 22, 2016 Posted March 22, 2016 52 minutes ago, Steve-Ray said: {setting="base_url"} Change that to your desired URL in the <a href..... portions of the code.
Cascadia Posted March 22, 2016 Author Posted March 22, 2016 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.
Nathan Explosion Posted March 22, 2016 Posted March 22, 2016 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/
Cascadia Posted March 22, 2016 Author Posted March 22, 2016 LOL, ok I got it now!! Works exactly like I want it to. Big Thank You!
Daniel F Posted March 22, 2016 Posted March 22, 2016 Have you tried to use {setting=http://yourdomain}? AFAIK the system shouldn't allow you to save this.
Nathan Explosion Posted March 22, 2016 Posted March 22, 2016 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. BUT if you change "base_url", it saves and you end up with this: 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.
omgenghis Posted May 11, 2016 Posted May 11, 2016 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?
omgenghis Posted May 15, 2016 Posted May 15, 2016 Bump - It's probably something easy but I'm not seeing it.
BN_IT_Support Posted May 15, 2016 Posted May 15, 2016 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.