Post by yennhikorea » Tue May 10, 2016 2:41 pm

I have created the a custom menu in the header where I put the links to About Us, Register and Contact Us.

Now I want to utilise SEO URL's. I've set the SEO URL keywords in admin, and all the pages work fine but the custom links aren't working.

Here's the customised code I've added to the header:

Code: Select all

<div class="nav">
      <ul>

        <li><?php foreach ($categories as $category) { ?><a href="<?php echo $category['href']; ?>"> <?php }?> Products</a></li>
        <li><a href="index.php?route=account/register">Register Now</a></li>
        <li><a href="index.php?route=information/information&information_id=4">About Us</a></li>
        <li><a href="index.php?route=information/information&information_id=7">The Company</a></li>
        <li><a href="index.php?route=information/information&information_id=8">iPhone App</a></li>
        <li><a href="index.php?route=information/contact">Connect@Cobra Razors</a></li>

        </ul>
    </div>

Thiết kế web | Thiet ke web ban hang | thiết kế web thương mại diện tử | thiết kế web chuẩn SEO | kinh doanh online | magento 2 extensions


New member

Posts

Joined
Fri Apr 22, 2016 1:55 pm
Location - Viet Nam

Post by MarketInSG » Tue May 10, 2016 10:26 pm

since you've hard coded the URL, just change the URLs accordingly will do.


User avatar
Guru Member

Posts

Joined
Wed Nov 16, 2011 11:53 am
Location - Singapore
Who is online

Users browsing this forum: No registered users and 9 guests