Need to add hyperlink to a container/div

frank38
2 Posts
frank38 posted this 3 weeks ago

I know the app doesn't let you add a class to containers except for Sections. But I need to add a link to a whole container. I'm not a programmer so I could use some help with this.

I think the class name is:

data-control-id-1639017 or bd-layoutbox-48
or both???

Can't figure what the javascript should be... using this:

<script>
$(".bd-layoutbox-48").click(function() {
  window.location = $(this).find("a").attr("href"); 
  return false;
});
</script>


**html example:**
<div class="bd-layoutbox-48">
  blah blah blah.
  <a href="http://google.com">link</a>
</div>

I know the app doesn't let you add a class to containers except for Sections. But I need to add a link to a whole container. I'm not a programmer so I could use some help with this. **I think the class name is:** data-control-id-1639017 or bd-layoutbox-48 or both??? **Can't figure what the javascript should be... using this:** <script> $(".bd-layoutbox-48").click(function() { window.location = $(this).find("a").attr("href"); return false; }); </script> **html example:** <div class="bd-layoutbox-48"> blah blah blah. <a href="http://google.com">link</a> </div>
Vote to pay developers attention to this features or issue.
1 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 3 weeks ago

Hello Frank,

Classes that start with "bd-" are from Bootstrap, they are in most cases dynamic and may change with every page reload.

In your case I would recommend adding custom HTML (via Insert -> HTML), to the beginning of the container content and add unique class to that HTML control instead.

Gina
Themler Support

Hello Frank, Classes that start with "bd-" are from Bootstrap, they are in most cases dynamic and may change with every page reload. In your case I would recommend adding custom HTML (via Insert -> HTML), to the beginning of the container content and add unique class to that HTML control instead. Gina Themler Support
You must log in or register to leave comments