Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #471423

    After the update I noticed problem … on this page below in Private Content, by clicking on the Download buttons in the potfolio
    now file is not downloaded but opened in the browser!! Why? How to fix it?

    PS. But .exe files dowloaded normaly

    #471485

    Hi denis-lvov!

    I’m not familiar with .lo files. The default browser behaviour is probably to display it as text.

    If you want to make sure they are downloaded then you can zip them up in an archive and place a URL to the archive in the button instead.

    Best regards,
    Elliott

    #471563

    Hi Elliott
    This template files for our software.
    The problem is that before enfold theme update these files started downloaded when you click on button
    Now comes the opening in the browser as a text document

    Archive files are bad advice … because this will complicate their usability for our customers

    Can I make another link format to make forced download.. or maybe I can specify a priority for such files somewhere in the themes or site settings

    Please take this issue seriously/

    #472233

    Hi!

    Sorry for the late reply. Please turn on custom CSS field for ALB elements – kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then give your download links a custom class and then add following code to Functions.php file in Appearance > Editor

    function add_custom_target(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('.your-custom-class').attr('download','');​
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_target');

    Best regards,
    Yigit

    #516778

    Unfortunately, your advice has not helped
    maybe I’m doing something wrong? ..
    could you check it please?

    dowmload buttons inside AJAX Portfolio here:
    http://orderflowtrading.ru/downloads/chart-templates/

    #519528

    Hi!

    Here is the browser support for the HTML5 download attribute, http://caniuse.com/#feat=download. Did you try it in those browsers?

    Other than that I think you will need to add it to an archive if you want the user to be able to download it automatically when clicking on the button. They can always “right click > save as” also.

    Regards,
    Elliott

    • This reply was modified 9 years, 2 months ago by Elliott.
    #519538

    “Archive files are bad advice … because this will complicate their usability for our customers”

    Already solve this issue using code:
    AddType application/octet-stream .lo
    in my .htaccess file

    #519781

    Hey!

    glad you could solve the issue and thanks for sharing your solution.
    Let us know in a new ticket if you have some more questions about the theme.

    Cheers!
    Andy

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘download links do not work’ is closed to new replies.