Jump to content

A tag is being replicated

Recommended Posts

The following code in the footer is producing multiple copies of the <a/> tag, screen shot attached. What went wrong?

<div style="text-align:center">
  <h3>
    Decisive Wife
  </h3>
  <a href="https://apps.apple.com/us/app/" style="display:inline-block; overflow:hidden; background:url(/s/Download_on_the_App_Store_Badge.svg) no-repeat; width:135px; height:40px;"/>
</div>

 

Screen Shot 2020-03-01 at 8.44.21 AM.png

Link to comment
  • Replies 1
  • Views 300
  • Created
  • Last Reply

your code will apply to all a tag entire site.

<a href="https://apps.apple.com/us/app/" style="display:inline-block; overflow:hidden; background:url(/s/Download_on_the_App_Store_Badge.svg) no-repeat; width:135px; height:40px;"/>

edit it to

<a href="https://apps.apple.com/us/app/" class="tuanphan"/>

and insert this to Design > Custom CSS

.tuanphan {
  display:inline-block; 
  overflow:hidden; 
  background:url(/s/Download_on_the_App_Store_Badge.svg) no-repeat; 
  width:135px; 
  height:40px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.