# CTA - Issue with Edits to Embed Code

**URL:** <https://community.hubspot.com/t/cta-issue-with-edits-to-embed-code/15754>\
**Category:** Lead Capture Tools\
**Tags:** ctas\
**Created:** [August 14, 2019, 6:48pm UTC](https://community.hubspot.com/t/cta-issue-with-edits-to-embed-code/15754 "2019-08-14T18:48:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![merinna](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/merinna/32/76428_2.png) [@merinna](https://community.hubspot.com/u/merinna)\
**Post date:** [August 14, 2019, 6:48pm UTC](https://community.hubspot.com/t/cta-issue-with-edits-to-embed-code/15754/1 "2019-08-14T18:48:30Z")

</div>

Hello!

My company is a HubSpot Partner and I have a client who is placing the embed code for CTAs that we created onto their website. She asked me a question that I am hoping someone has some insight on. She wants to know if there is a way to add class names to the \<a\> element in the embed code? She has already tried adding class names in the \<a\> element when she is adding the embed code to the specific pages of the site. She says her class names are getting removed on the front-end, despite placing them in the \<a\> element in the back-end.

Any suggestions? Thanks!

---

<div class="post-metadata">

**Author:** ![Aakar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aakar/32/107785_2.png) [@Aakar](https://community.hubspot.com/u/Aakar)\
**Post date:** [August 16, 2019, 12:37pm UTC](https://community.hubspot.com/t/cta-issue-with-edits-to-embed-code/15754/2 "2019-08-16T12:37:25Z")

</div>

Hi @merinna

HubSpot [says](https://knowledge.hubspot.com/articles/kcs_article/ctas/embed-calls-to-action-cta-on-an-external-site) you should not alter the embed code.

Alternatively, if you’re using an image in the CTA, HubSpot [suggests](https://knowledge.hubspot.com/articles/kcs_article/cta/where-can-i-edit-the-size-of-a-cta) applying additional CSS declarations (such as width: 100%😉 within your stylesheet to make the image CTA responsive.

Thanks.

---

<div class="post-metadata">

**Author:** ![merinna](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/merinna/32/76428_2.png) [@merinna](https://community.hubspot.com/u/merinna)\
**Post date:** [August 16, 2019, 1:55pm UTC](https://community.hubspot.com/t/cta-issue-with-edits-to-embed-code/15754/3 "2019-08-16T13:55:57Z")

</div>

Hi @Aakar,

Thank you for your response. The problem is that the page the CTAs are being added on has a search functionality that relates to the category of the button. If the embed code can not be edited once placed onto the website, the search functionality is broken. For example, if someone wanted to look at all of the options on the page that are “online classes” and exclude all “seated classes” in their search, then all of the options for “online classes” should be able to show and have the HubSpot CTA buttons for each program.

If there is a way to work that into the CSS stylesheet I don’t know how. Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![Aakar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/aakar/32/107785_2.png) [@Aakar](https://community.hubspot.com/u/Aakar)\
**Post date:** [August 19, 2019, 4:54am UTC](https://community.hubspot.com/t/cta-issue-with-edits-to-embed-code/15754/4 "2019-08-19T04:54:40Z")

</div>

Hi @merinna

I don’t have the full context about your design & flow. However, I think you can apply a CSS class outside of your CTA code. With that CSS class, you’ll be able to hide/display certain CTAs. Does this help?

Thanks.
