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.
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.
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
irc.freenode.net #opencart
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.
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.
hmm..what will it be that you guys need now? Will see what I can help here
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.
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.labeshops wrote:Why don't you make your header links rel=nofollow? If I'm understanding your issue, that should fix it, no?
My store is awesomely powered by OpenCart 1.5.5.1.
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.
Who is online
Users browsing this forum: Amazon [Bot] and 14 guests