Post by DragonJ » Sat Jun 09, 2012 6:53 am

I've stumbled upon a downfall of the OpenCart "flyout" menu system.

The flyout menu makes it necessary for OC to load ALL the parent (top-level) and immediate children categories which is good IF the template you're using supports the flyout design AND/OR your store has a small number of categories.

My store has 20 top-level categories and each one of those has 5-10 immediate children categories. The end result is that EVERY page of my website includes <a hrefs...> to about 175 internal links which isn't completely bad, but it's not good for SEO.

My theme does not support a flyout menu -- it's static -- which is a double whammy for me, because it's loading menu links that are impossible for users to click.

Any advice on how to stop the unnecessary child categories from loading is greatly appreciated.

My store is awesomely powered by OpenCart 1.5.5.1.


User avatar
Active Member

Posts

Joined
Sun Jan 29, 2012 4:49 pm

Post by Tcalp » Sat Jun 09, 2012 6:59 am

Sounds like a problem with your template. Edit the header.tpl

Increase Page Speed (#1 rated commercial extension on OpenCart Marketplace)
15in1 Essential Extensions Value Pack Premium Customer Testimonials Reward Points Extended Admin Security Lockdown Suite

Image
irc.freenode.net #opencart


User avatar
Active Member

Posts

Joined
Wed Jul 06, 2011 1:49 pm

Post by DragonJ » Sat Jun 09, 2012 7:15 am

If by "problem" you mean something was coded wrong, that's not the case. It still loads all the categories even when using the default template.

My store is awesomely powered by OpenCart 1.5.5.1.


User avatar
Active Member

Posts

Joined
Sun Jan 29, 2012 4:49 pm

Post by restlesscookie » Wed Oct 09, 2013 2:38 pm

Hi,
Did you find a solution to this issue? I an getting the same and I it's effecting my ranking. I have about 300 links per page per loaded, before I add any content.


Posts

Joined
Tue Jun 25, 2013 11:31 am

Post by DragonJ » Thu Oct 10, 2013 2:45 pm

Unfortunately, I never did find a solution to this. Even more unfortunate is my store expanded with more categories which diluted my SEO that much more.

My store is awesomely powered by OpenCart 1.5.5.1.


User avatar
Active Member

Posts

Joined
Sun Jan 29, 2012 4:49 pm

Post by MarketInSG » Thu Oct 10, 2013 4:03 pm

hmm..what will it be that you guys need now? Will see what I can help here


User avatar
Guru Member

Posts

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

Post by labeshops » Thu Oct 10, 2013 8:41 pm

Why don't you make your header links rel=nofollow? If I'm understanding your issue, that should fix it, no?

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by DragonJ » Fri Oct 11, 2013 12:31 am

labeshops wrote:Why don't you make your header links rel=nofollow? If I'm understanding your issue, that should fix it, no?
I had considered that, but that's more of a band-aid solution because my category pages are set up for good SEO. Ideally, I would want to get rid of all the child-level category links.

My store is awesomely powered by OpenCart 1.5.5.1.


User avatar
Active Member

Posts

Joined
Sun Jan 29, 2012 4:49 pm

Post by labeshops » Fri Oct 11, 2013 12:37 am

Okay, so trying to figure out exactly what you are trying to do. If you just want to remove the child categories that appear in your top menu, just edit header.tpl and remove or comment out:

Code: Select all

    <?php if ($category['children']) { ?>
      <div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>
      <?php } ?>

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by DragonJ » Fri Oct 11, 2013 1:04 am

That's great! I will give it a try in the next day or so and report back the results.

My store is awesomely powered by OpenCart 1.5.5.1.


User avatar
Active Member

Posts

Joined
Sun Jan 29, 2012 4:49 pm
Who is online

Users browsing this forum: No registered users and 14 guests