Jump to content

Adding Additional Link to Header


LaughingHorse

Recommended Posts

I would like to know how I can add an additional link to the header for all pages in CubeCart. The way my site is set up I have a WordPress blog as the "Front End" with a blog, and more. That links to the Cube Cart Shop.

I would like to have two links for "Home"

One labeled "Store Home" and the other labeled "Site Home"

Or possibly when someone clicks on the site logo they are taken to the site home.

And I could also have a Text link that says "Shop Home"

Thank You in Advance!

Allen

Link to comment
Share on other sites

In the template file box.navigation.php, the first (real) <li> tag is for "Home" pointing to {$STORE_URL}. You can insert another <li> just above it for the main site.

Foundation uses a graphic (actually, a font that looks like little images) for the Home link. You may want to use that for the main site, then use something else to indicate the store homepage. (Maybe a variation of your favicon?)

Link to comment
Share on other sites

Well, I thought that would give me what I wanted. But I was wrong on that.

Attached is the header of the site. What I would like to do is when someone clicks on the logo it would take them to the WordPress site.

To do that would I got to templates/main.php edit <a href="{$STORE_URL}" :

  <div class="small-5 medium-4 large-3 columns">
                  <a href="{$STORE_URL}" class="main-logo"><img src="{$STORE_LOGO}" alt="{$META_TITLE}"></a>
               </div>
on line 58 to reflect the URL I want?

Thank you!

Also for some reason now even though I changed box.navigation.php back to the original file, it is still showing two homes. One with the store home, and one with the wordpress url. I did check using FIlezilla to check the code in box.navigation.php to make sure it really did revert back to the original. It did. I also used a "clean" browser (one that had the cache cleared). But it is still showing the two home icons.

Sorry to be a pest.

Thanks in advance for your reply.

Screenshot from 2015-05-24 21:06:03.png

Link to comment
Share on other sites

In admin, Maintenance, Rebuild tab, check the Clear Cache and Submit. Smarty may be using a cached copy of the modified template.

Correct, edit the href attribute on the tag at line 58.

While making edits to the templates, it may be advantageous if you were to disable caching: admin, Store Settings, Advanced tab.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...