-
AuthorPosts
-
July 10, 2015 at 1:28 pm #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
July 10, 2015 at 3:08 pm #471485Hi 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,
ElliottJuly 10, 2015 at 4:10 pm #471563Hi 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 documentArchive 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/
July 13, 2015 at 10:56 am #472233Hi!
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,
YigitOctober 10, 2015 at 1:02 pm #516778Unfortunately, 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/October 15, 2015 at 7:56 pm #519528Hi!
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.
October 15, 2015 at 8:08 pm #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 fileOctober 16, 2015 at 11:02 am #519781Hey!
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 -
AuthorPosts
- The topic ‘download links do not work’ is closed to new replies.