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
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.