0

The site URL is http://juicecore.com/. I could really use some guidance on getting that top navigation link for "Home" to point to the same CMS home page as the main URL and logo do.

The top menu was created by creating categories and assigning static blocks to them. The static block assigned to the top nav Home link is coded as

<ul><li><a class="level0" href="http://juicecore.com/">Home</a></li></ul>

I also tried using "/" and a full path url, no dice. The logo points to the index page which corresponds to the CMS page assigned for home page content. System/Configuration/General/Web/Default Pages/CMS Home Page is set to use the correct page. I tried editing this line is topnav.phtml a few different ways, no dice:

<?php $_menu = $this->getHtml('level-top') ?>

After many Google and forum searches, I’m at a loss as to what to try next. I just need that home link to point to the same CMS content page as the logo and main url http://juicecore.com/ do. Any thoughts would be greatly appreciated.

asked Feb 21, 2013 at 16:37
1
  • How did you assigned static block to top menu? Commented Feb 21, 2013 at 18:01

1 Answer 1

1

1. Whenever getting URLs

Don't use a hardcoded URL.

In the CMS, use

{{store url=''}}

In PHP, use

<?php echo $this->getUrl(); ?>

2. Ensure you set the CMS homepage

In System > Configuration > General > Web > Default Pages

enter image description here

answered Feb 21, 2013 at 18:35
1
  • I'll review what's there and make these changes right away. Thank you for the suggestions! :) Commented Mar 2, 2013 at 3:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.