Jump to content

Hyperlink in collapsible

Recommended Posts

Site URL: https://www.digitalsikkerhed.dk/

Hi

I am using the Bedford template.

As I could not find an option to create a collapsible drop-down menu I decided to create it through coding. I am no expert in this area though.

Problem: I have successfully created the collapsible. However, when trying to create hyperlinks within the collapsible it simply won´t work.

Here is an example of the coding of one of the click on options of the collapsible:

<button class="collapsible">4. Undgå falske beskeder (phishing)</button>

<div class="content">

  <p>Vær særlig opmærksom, når du modtager beskeder fra folk du ikke kender eller når en mail/sms indeholder links til hjemmesider du ikke kender. Et besøg på den forkerte hjemmeside kan inficere din computer eller telefon. Læs evt. denne <a href=”https://www.digitalsikkerhed.dk/undg-du-phishing”>særvejledning</a> om begrebet Phishing.</p>

</div>

If further information is needed please let me know. I hope you will be able to provide me with some kind of help. 

Kind regards,
LauritsCB

 

Link to comment
  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

1 hour ago, LauritsCB said:

The creation of the collapsible/accordion is not causing me troubles. However, making the hyperlinks function properly is.

Hope you will be able to help me with this somehow. Thanks!

 

Can you share link to page where you use hyperlink? I can take a look

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

You used invalid character. Copy this code and paste to your code. and try see if it works.

 Læs evt. denne <a href="https://www.digitalsikkerhed.dk/undg-du-phishing">særvejledning</a>

 

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
3 minutes ago, LauritsCB said:

Brilliant! It works! 

I don´t see the difference at all though, on my initial attempt and what you were so kind to send just before. 

Can you highlight the difference in the text? 

Thanks! 🙂

you used " and "

It is different from " and " I have used.
do not know how to describe it. It's just the feeling of working a lot with code.

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.