How to Create a Direct Download Button in Divi

  Рет қаралды 19,653

Josh Hall

Josh Hall

Күн бұрын

Пікірлер: 56
@jakobus6504
@jakobus6504 3 жыл бұрын
Wow i am so impressed!!! i never saw a tutorial in that quality! i had no idear how to do this! Thank you!!
@tracytrathen3162
@tracytrathen3162 2 жыл бұрын
I was looking for this! Have a certain post type using ACF and for the link - since I didn't use a button, I had to figure out how the link selector was nested... so I had to do a nesting solution with the jQuery (i.e. jQuery('div#my-id > div > div > h5 > a'), and it finally put the "download" attribute on the a! Very nice solution to fix something I need to wrap up for a client today!!! Will make it easy to do for her too, when she uploads new audio samples!
@lewisdesignplus
@lewisdesignplus 3 жыл бұрын
Thanks for this solution Josh! Worked great.
@adrianramirezl.4388
@adrianramirezl.4388 4 жыл бұрын
Hello again. I tried today the first method and it worked out perfectly. Great!
@airfryersforhomeuse9524
@airfryersforhomeuse9524 5 жыл бұрын
I will be adding this to all of my sites. Thanks Josh
@sktechnology522
@sktechnology522 3 жыл бұрын
Your teaching style is very easy. Thanks, Josh!
@dashingbooks3436
@dashingbooks3436 4 жыл бұрын
Thank you Josh. You made it much easier than I thought it would be.
@brookeb9697
@brookeb9697 2 жыл бұрын
Worked so good! Thank you!
@kalebschad8403
@kalebschad8403 5 жыл бұрын
Just tried this and have the same issue Brian Mercer has. I've cleared it all and started over and still not working. Any thoughts on what might have changed?
@bearhawk7497
@bearhawk7497 2 жыл бұрын
This is extremely helpful! Thanks for making this video!
@DannyIrvinephotography
@DannyIrvinephotography 4 жыл бұрын
Fantastic, worked first time.
@brentstutzman
@brentstutzman 4 жыл бұрын
Worked like a charm! Thank you Josh! Grateful for these videos. 🙏
@guteFILMEwelt
@guteFILMEwelt 3 жыл бұрын
In my case I had to target the tag. -> ".download-button a" jQuery(document).ready(function() { var downloadButtons = jQuery('.download-button a'); downloadButtons.each(function(index) { jQuery(this).attr('download', ''); }); });
@entresuite1973
@entresuite1973 2 жыл бұрын
Thanks... this resolved my issue also. The tutorial worked fine for me with inline text. But my buttons are contained within 'Call To Action modules, not just button modules. Now I added the 'a' it's all working great. Cheers.
@crispinosantamaria5501
@crispinosantamaria5501 4 жыл бұрын
Thanks for the tutorial mate, please continue the good work!!
@janfm8670
@janfm8670 5 жыл бұрын
Great Input. Downloaded IT Directly 😉
@VeganSmythe
@VeganSmythe 5 жыл бұрын
Thanks Josh, your videos really are quite awesome!
@tomvaichus5541
@tomvaichus5541 Жыл бұрын
Hi Josh, how do I add the CSS Class to a button that is part of a contact form?
@carpetcleanertraining8020
@carpetcleanertraining8020 2 жыл бұрын
I have a question. I used the code however it functions without putting download-button in the class for the button. I'm not sure why. I was trying to make the button visible only when a menu tab is clicked so the class was also linked to the menu button. However, I couldn't get the button to show up when I put download-button in the class as well so I removed it and just left the class name for the menu. I checked to see if the button was now visible and it was. I clicked it and to my surprise, it downloaded without being labeled with the download-button class. Can you enlighten me as to what is going on?
@brianmercer6967
@brianmercer6967 5 жыл бұрын
I've tried this and it still open in a separate window. I upgraded to Divi 4.0. Has something changed, maybe?
@tinajthesinger
@tinajthesinger 4 жыл бұрын
Same for me...
@zabity
@zabity 3 жыл бұрын
the jquery function finds any html object with a class 'download-button' and gives it the attribute 'download' which allows the direct download. so: 1. check if your button has correct class, it could be anything as long as it's the same in both divi and the jquery code 2. it doesn't work in internet explorer (doesn't support the download attribute)
@melaniesaidmaizaabril7472
@melaniesaidmaizaabril7472 3 жыл бұрын
Thank you so much your content is really usefull!!! LOVE IT
@PaylessTravelBurwood
@PaylessTravelBurwood 3 жыл бұрын
Hi Josh, its a nice video. Code is not working, and please can you advise I need to allow a Doc file.
@lucierychetska2648
@lucierychetska2648 2 жыл бұрын
Great, thanks 👏
@publikanguro.tecno.marketing
@publikanguro.tecno.marketing 4 жыл бұрын
Thank you a lot Mr. Josh, it works great now and it all tanks to you!!!!!
@connectionearth
@connectionearth 2 жыл бұрын
Amazing thanks!!!✌
@MartinKleine
@MartinKleine 2 жыл бұрын
Thanks for that toutorial
@jojololo301
@jojololo301 2 жыл бұрын
Hei i have an problem, how can i ad this class to, for example, an text-module? It works fine with the button-module and normal text. But when adding it to an other module the image still opens in another tab and does not download directly..
@worksprings9399
@worksprings9399 4 жыл бұрын
Thank you. Very helpful video.
@tvstarks
@tvstarks 3 жыл бұрын
This is great, Josh. Thanks! You vids have been very helpful for my Divi biz. Wondering if you have a jQuery variable for printing a file directly from the button module? Am trying to print coupons from a site from Button module. Click button, launch print dialog box. Thanks!!!
@toxizwastez
@toxizwastez 4 жыл бұрын
Thanks alot for this!
@davidkuehne5291
@davidkuehne5291 3 жыл бұрын
Isn't this code just adding an attribute of "download" to the link? Why not simply add this "download" attribute in the advanced tab of the module? Is it not less work? Am I confused?
@samfabio
@samfabio 4 жыл бұрын
HI Josh! How to add a (Print out) button on any page in divi or wordpress?
@JoelElangovan
@JoelElangovan 4 жыл бұрын
Works perfectly on desktop, but doesn't work on mobile (Android). What do u think the problem is ?
@fifthdaniel6413
@fifthdaniel6413 4 жыл бұрын
hello Josh, does this work for videos with KZbin URL?
@marnie.aramruck7441
@marnie.aramruck7441 4 жыл бұрын
Thank you so much!
@perfecto1701
@perfecto1701 5 жыл бұрын
Thanks mate, pretty good.
@ChGoertz
@ChGoertz 4 жыл бұрын
Many thx- very helpfull
@adrianramirezl.4388
@adrianramirezl.4388 4 жыл бұрын
Hola. Muchas gracias!
@Drop-jb5td
@Drop-jb5td Жыл бұрын
so for the file ?
@aniketjoshi7518
@aniketjoshi7518 5 жыл бұрын
really easy peasy
@brucefoh
@brucefoh 3 жыл бұрын
did not work for me.
@amberlihartwellacting
@amberlihartwellacting 5 жыл бұрын
I did this on my site to (download a photo x3 ) and it worked great. Then I changed the photos and redid it and now it doesn't work. I have tried lots of times - could it be because new photos are png instead of jpegs? or is it because of the more recent changes to divi?
@JoshHallco
@JoshHallco 5 жыл бұрын
The filetype or any changes to Divi won't be an issue. Maybe the link to the file is wrong? Make sure the link is correct and the class is in there then you should be good to go.
@amberlihartwellacting
@amberlihartwellacting 5 жыл бұрын
@@JoshHallco Thanks for your reply thats helpful - I have checked and rechecked spent about 2 hours on it tonight (I am not techy!) I think it will be something in the code somewhere.
@JoshHallco
@JoshHallco 5 жыл бұрын
@@amberlihartwellacting yeah in that case, I always recommend just starting from scratch and you'll usually be good to go!
@amberlihartwellacting
@amberlihartwellacting 5 жыл бұрын
@@JoshHallco Hey thanks Josh - itching to ask you - you took out the .et what does that do? I had that in the old version - thanks heaps
@JoshHallco
@JoshHallco 5 жыл бұрын
@@amberlihartwellacting the class can actually be anything you want to call it. I just took it out for my reference but you can keep it in - doesn't matter!
@katelyndawn3446
@katelyndawn3446 3 жыл бұрын
Dang this works on Chrome but not on my other browsers
@studio47designer61
@studio47designer61 5 жыл бұрын
Merci
@MoLtenMetaL7
@MoLtenMetaL7 Жыл бұрын
Didn't work for vCard
@fullpreteristnow
@fullpreteristnow 3 жыл бұрын
Isn't this code just adding an attribute of "download" to the link? Why not simply add this "download" attribute in the advanced tab of the module? Is it not less work? Am I confused? OK, just realized that I cannot add just any attribute in the attributes panel, but only those which Divi deems necessary. That's so lame-stupid in fact. They should have left an option to enter a custom attribute. Time to hack the model and add "download" as an option.
@25thming44
@25thming44 4 жыл бұрын
*mâchine*
How to Create a Call To Action Button for the Divi Menu
12:58
Josh Hall
Рет қаралды 69 М.
Divi Theme How to Create a Direct Download Button
8:57
System 22 Web Design | Divi Theme Elementor WP
Рет қаралды 1,2 М.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 49 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,9 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 7 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
How to setup WordPress download manager for DIVI
8:16
JoomUnited Official
Рет қаралды 590
How to Create an Automatic Download Link
2:57
Paperform
Рет қаралды 216 М.
How to Create Custom Tabs with Icons using Blurbs in Divi Theme
24:48
Ania Romańska (Divi Lover)
Рет қаралды 55 М.
How To Add Login Logout In WordPress Menu - WordPress Login Logout Button In Menu
5:24
WordPress Tutorials - WPLearningLab
Рет қаралды 42 М.
How to Create Anchor Links in Divi
9:48
Josh Hall
Рет қаралды 151 М.
How to Create Entire Website with ChatGPT (No Coding)
15:15
Website Learners
Рет қаралды 621 М.
The Easiest Way to Build Websites
10:56
Sajid
Рет қаралды 575 М.
Create a Click to Call button in Divi
5:32
Kori Ashton - WordPress Wednesdays
Рет қаралды 14 М.
How To Resize Divi Column Widths To Any Size
7:58
Pee-Aye Creative
Рет қаралды 46 М.
How to Add a One Click WordPress PDF Download Using Divi
5:08
Elegant Themes
Рет қаралды 65 М.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 49 МЛН