Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How can I get rid of Empty “href” Attribute. 
 
ncotrona
Sr. Member
 
Total Posts:  161
Joined:  2009-05-15
 

I am using a tool by Inspyder to report broken links, etc…..  One link error that keeps in my reports is

Empty “href” Attribute. 

Apparently, this link error is coming from the cart-sidebar code. 

Does anyone know what file I would need to modify to make this go away?  I simply want to put he word sidebar cart in the href tag… An example of the code from the page source is below….

<div class="mainLinks">
<div class="mycart">
<a href="">0 items</a>
<!-- [ends] .cart-sidebar // -->

 
Magento Community Magento Community
Magento Community
Magento Community
 
TreInnova
Guru
 
Avatar
Total Posts:  465
Joined:  2009-02-20
Fano
 
ncotrona - 03 April 2013 05:50 PM

I am using a tool by Inspyder to report broken links, etc…..  One link error that keeps in my reports is

Empty “href” Attribute. 

Apparently, this link error is coming from the cart-sidebar code. 

Does anyone know what file I would need to modify to make this go away?  I simply want to put he word sidebar cart in the href tag… An example of the code from the page source is below….


<div class="mainLinks">
<div class="mycart">
<a href="">0 items</a>
<!-- [ends] .cart-sidebar // -->

Hi,
you should control if cart is empty and according to result show or not the href.
regards
filippo

 
Magento Community Magento Community
Magento Community
Magento Community
 
ncotrona
Sr. Member
 
Total Posts:  161
Joined:  2009-05-15
 

Thank you....so what modifications would I make and where?

Any assistance is much appreciated.....

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top