Hi, Firstly I need to point out that i'm not very good at html and the back end of DNN, I just mainly use modules and insert text and images, but i'm trying to learn a bit more. I'm using DNN 9.3.2 I am using a theme called Porto and is has some shortcoes that can be used. I'm trying to make a button open up a pdf that I have on my server.
The shortcode is:
< button class="btn btn-primary" type="button">Default Size
But how do i modify this code to open a pdf.
I have done it with a text link as followes:
< a href="/Portals/17/WorcesterPA%20Directions.pdf" target="_blank">Click here for location map and parking instructions
I have been trying to add the < a> tag inside the < button>tag but I just cant get it to work.
< button>Any ideas, i'm sure it something simple but it has me stumped...:(
Kind regards, Matt
ooops...the code that i pasted in has been changed into a button.....
How do i add the code so you can see it?
Sorry.
Posted By mattfarmer on 30 Apr 2020 12:57 PM ooops...the code that i pasted in has been changed into a button..... How do i add the code so you can see it? Sorry.
type a space after any <
< a href...>
Posted By mattfarmer on 30 Apr 2020 12:56 PM Hi, Firstly I need to point out that i'm not very good at html and the back end of DNN, I just mainly use modules and insert text and images, but i'm trying to learn a bit more. I'm using DNN 9.3.2 I am using a theme called Porto and is has some shortcoes that can be used. I'm trying to make a button open up a pdf that I have on my server. The shortcode is: < button class="btn btn-primary" type="button">Default Size But how do i modify this code to open a pdf. I have done it with a text link as followes: < a href="/Portals/17/WorcesterPA%20Directions.pdf" target="_blank">Click here for location map and parking instructions I have been trying to add the < a> tag inside the < button>tag but I just cant get it to work. < button>Any ideas, i'm sure it something simple but it has me stumped...:( Kind regards, Matt
Normally the styling depends on the CSS class not the type of element. So
< a class="btn btn-primary" href="...">Open Pdf< /a> Should work
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.