Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1014759

    Hi Enfold team,

    On this page http://shedoesitcoaching.com/first-step-to-a-better-work-life-balance/
    I would like to make a link to a pdf document so people can download it when they click on the following text.

    “Download my 15 tips & challenges here”

    I’ve uploaded the pdf-document, but when I copy the URL and link it to the text it gives an error.

    Could you help me with that please?

    Thanks,
    Eefke

    #1014973

    Hey Eefke,

    I see no link on that page. How are you trying to add the link to the file?

    Best regards,
    Victoria

    #1014992

    Hi Victoria,

    I’ve uploaded the pdf document (I can see it in media|) and I thought to copy the URL of that document to the text. But that didn’t work.

    Do you know how I can make a link to the pdf document that will work?

    Thanks.
    Eefke

    #1015139

    Hi,

    If you click Add Media in the text block it will add a link to the document automatically for you, I just did that. Please review your page.

    Best regards,
    Rikard

    #1015263

    Hi Rikard,

    Thanks for your help!
    So it is not possible to make a link to the pdf in the text? So for example is it possible to make a link from the word ‘here’ in the sentence ‘Download my 15 tips & challenges here’.

    When I click on the link you’ve made I get an error: 403 forbidden error (see the private content).
    Any idea what’s the problem?

    Thanks in advance.
    Eefke

    #1015270

    Hi!

    I think the link per se is not the problem but your download manager plugin restricts the access to the file. You need to replace the url of the file with the url I posted in the private field/content

    Regards,
    Peter

    #1015291

    Hi Peter,

    Thanks for your quick reply! Yes it worked. Great!
    Where can I find what the right URL is, and can I change the name of the URL?

    Because I want to do it more often ;)
    Eefke

    #1015297

    for those who likes to know how to make it and could not read the private content:
    try this here:

    One possible method could be to do this by defining the type :
    but the pdf has to be on your own server – does not work with global links from elsewhere:

    <a class="pdf-download" href="https://www.w3.org/2003/01/Consortium.pdf" target="_blank" 
    type="application/octet-stream" download="Consortium.pdf"><img src="https://www.w3.org/2008/site/images/logo-w3c-screen-lg" alt="W3Schools" ></a>

    see here: https://webers-testseite.de/weber/direct-downlaod-a-pdf/

    with download= : you can determine the default download name
    with that class it is easier to style the link. f.e. remove overlay etc.

    see the right “button” with that class: pdf-download

    .pdf-download {
        display: inline-block !important;
        overflow: visible !important
    }
    
    .pdf-download .image-overlay {
    display:none !important
    }
    
    .pdf-download::before {
        content: "";
        background-image: url(https://webers-testseite.de/weber/wp-content/uploads/2018/09/PDF-Icon.png);
        background-repeat: no-repeat;
        background-size: 30%;
        background-position: 0 0 ;
        transition: all ease-in-out 1s;
        position: absolute;
        width: 100%;
        height: 100%;
        top: -30px;
        left: calc(100% - 40px);
        z-index: 5;
    }
    
    .pdf-download:hover::before {
        background-position: 0 20px !important;
        transition: all ease-in-out 1s;
        transform: scale(1.1);
        transform-origin: center center;
        -webkit-filter: drop-shadow(2px 2px 4px #333);
        filter: drop-shadow(2px 2px 4px #333);
    }
    
    • This reply was modified 6 years, 2 months ago by Guenni007.
    #1015373

    Hi Eefke,

    Please let us know how Guenni007’s solutions worked for you and whether you need more help.

    Best regards,
    Victoria

    • This reply was modified 6 years, 2 months ago by Victoria.
    #1015411

    Hey!

    @Guenni your solution won’t work here because the problem is not the file type or download link per se.

    @Efke – please read my last post carefully – I already answered your first question: https://kriesi.at/support/topic/link-to-a-pdf-document/#post-1015270

    I don’t know if you can change the url – maybe you can do it in the plugin settings or purchase a premium addon for this feature. I’d recommend to talk to the plugin author.

    Regards,
    Peter

    #1015424

    Peter, thanks a lot!
    Yes, sorry I missed a part in the private area.

    I know enough now :-).
    You can close this topic.

    Best,
    Eefke

    #1015450

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Link to a pdf document’ is closed to new replies.