vidmarc Posted October 12, 2014 Share Posted October 12, 2014 Is it possible to change the "homepage" link to "Store Homepage" and add another "homepage" link that takes users back to the Wordpress front end? http://www.academytextiles.com Thanks, Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 12, 2014 Share Posted October 12, 2014 In the skin template main.php, find this group of statements (or similar):<div id="breadcrumb"> <ul> <li><a href="{$STORE_URL}">{$LANG.common.home}</a></li> {foreach from=$CRUMBS item=crumb} <li><a href="{$crumb.url}">{$crumb.title}</a></li> {/foreach} </ul> </div> After the opening <ul>, add a <li> that contains the absolute link to your front end. You can change {$LANG.common.home} to a static bit of text, or you can use CubeCart's language editor. In admin, Languages, click the edit icon of the language you want to edit. On the drop-down selector, choose "Common". Change the phrase for 'home'. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted October 12, 2014 Author Share Posted October 12, 2014 Thanks for your help. If I upgrade the store will I lose the changed code? I was kind of hoping there was an easier way without having to change the templates. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 12, 2014 Share Posted October 12, 2014 If you are changing a stock skin, then, yes. However, if you copy the stock skin to a custom name, update the config.xml file with the new name, and have CubeCart use that new skin, then an upgrade will not overwrite that. It will be up to you, therefore, to make any changes an upgrade made to stock skins to get applied to your new skin. If you are really good with jQuery, you can create a javascript file and put it in the skin's /js/ folder (no need to edit the existing script.js file). This file will have jQuery search for (div.breadcrumb) and the child li tags. The script then adds a new li tag at the front of the resultant array. jQuery then writes the array back to the document. With the code of CubeCart, finding a hook to use, plus catching a template, immediately from reading the file in or after it is rendered to the final HTML, is ridiculously difficult. Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 12, 2014 Share Posted October 12, 2014 Marc Have already changed the language string for you and as you use a third party skin Blueprint, this wont be list when upgrading CubeCart. It would be lost by upgrading the skin but as Homer seems to have disappeared, the chances of that happening any time soon are pretty slim ! Ian Quote Link to comment Share on other sites More sharing options...
vidmarc Posted October 12, 2014 Author Share Posted October 12, 2014 Thanks Ian - how do I add another link to the far left which will take you to the WP homepage? Quote Link to comment Share on other sites More sharing options...
havenswift-hosting Posted October 12, 2014 Share Posted October 12, 2014 Marc Brian has already given the details on how to do this by editing the skin template main.php file. This isnt a difficult change but if you are unable to do it drop us a support ticket and we can sort it tomorrow for you Thanks Ian Quote Link to comment Share on other sites More sharing options...
vidmarc Posted October 13, 2014 Author Share Posted October 13, 2014 I've looked at the main.php template and i don't see anything that resembles the above. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 14, 2014 Share Posted October 14, 2014 Sorry, I actually did not look at your store. I just assumed because you didn't mention you were using Blueprint, I gave instruction on Kurouto. The Blueprint template file you want is box.navigation.php. If you plan to do the jQuery trick, instead of (div.breadcrumb), you will use (div.box-navgation) [sic]. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.