How to Create a Direct Download Button in Divi

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

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.
@airfryersforhomeuse9524
@airfryersforhomeuse9524 5 жыл бұрын
I will be adding this to all of my sites. Thanks Josh
@adrianramirezl.4388
@adrianramirezl.4388 4 жыл бұрын
Hello again. I tried today the first method and it worked out perfectly. Great!
@bearhawk7497
@bearhawk7497 2 жыл бұрын
This is extremely helpful! Thanks for making this video!
@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.
@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?
@brookeb9697
@brookeb9697 2 жыл бұрын
Worked so good! Thank you!
@DannyIrvinephotography
@DannyIrvinephotography 4 жыл бұрын
Fantastic, worked first time.
@brentstutzman
@brentstutzman 4 жыл бұрын
Worked like a charm! Thank you Josh! Grateful for these videos. 🙏
@crispinosantamaria5501
@crispinosantamaria5501 4 жыл бұрын
Thanks for the tutorial mate, please continue the good work!!
@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.
@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..
@VeganSmythe
@VeganSmythe 5 жыл бұрын
Thanks Josh, your videos really are quite awesome!
@janfm8670
@janfm8670 5 жыл бұрын
Great Input. Downloaded IT Directly 😉
@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?
@tomvaichus5541
@tomvaichus5541 Жыл бұрын
Hi Josh, how do I add the CSS Class to a button that is part of a contact form?
@publikanguro.tecno.marketing
@publikanguro.tecno.marketing 4 жыл бұрын
Thank you a lot Mr. Josh, it works great now and it all tanks to you!!!!!
@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.
@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)
@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?
@connectionearth
@connectionearth 2 жыл бұрын
Amazing thanks!!!✌
@JoelElangovan
@JoelElangovan 4 жыл бұрын
Works perfectly on desktop, but doesn't work on mobile (Android). What do u think the problem is ?
@worksprings9399
@worksprings9399 4 жыл бұрын
Thank you. Very helpful video.
@lucierychetska2648
@lucierychetska2648 2 жыл бұрын
Great, thanks 👏
@samfabio
@samfabio 4 жыл бұрын
HI Josh! How to add a (Print out) button on any page in divi or wordpress?
@MartinKleine
@MartinKleine 2 жыл бұрын
Thanks for that toutorial
@fifthdaniel6413
@fifthdaniel6413 4 жыл бұрын
hello Josh, does this work for videos with KZbin URL?
@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!
@marnie.aramruck7441
@marnie.aramruck7441 4 жыл бұрын
Thank you so much!
@brucefoh
@brucefoh 3 жыл бұрын
did not work for me.
@perfecto1701
@perfecto1701 5 жыл бұрын
Thanks mate, pretty good.
@Drop-jb5td
@Drop-jb5td Жыл бұрын
so for the file ?
@ChGoertz
@ChGoertz 4 жыл бұрын
Many thx- very helpfull
@adrianramirezl.4388
@adrianramirezl.4388 4 жыл бұрын
Hola. Muchas gracias!
@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
@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.
@aniketjoshi7518
@aniketjoshi7518 5 жыл бұрын
really easy peasy
@MoLtenMetaL7
@MoLtenMetaL7 Жыл бұрын
Didn't work for vCard
@studio47designer61
@studio47designer61 5 жыл бұрын
Merci
@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 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 26 МЛН
ROSÉ & Bruno Mars - APT. (Official Music Video)
02:54
ROSÉ
Рет қаралды 159 МЛН
How to Keep Columns on Mobile in Divi
11:20
Josh Hall
Рет қаралды 102 М.
How to setup WordPress download manager for DIVI
8:16
JoomUnited Official
Рет қаралды 590
How to make a Direct Download Button in Divi
5:58
Farjana Rashid
Рет қаралды 539
How to Customize the Top Header in Divi
18:43
Josh Hall
Рет қаралды 161 М.
How to Create an Automatic Download Link
2:57
Paperform
Рет қаралды 216 М.
Create a Click to Call button in Divi
5:32
Kori Ashton - WordPress Wednesdays
Рет қаралды 14 М.
How to Get Creative with Your Blurb Icon Background in Divi
14:09
Elegant Themes
Рет қаралды 10 М.
How to Create Custom Tabs with Icons using Blurbs in Divi Theme
24:48
Ania Romańska (Divi Lover)
Рет қаралды 55 М.
How to Create a Divi Mobile Menu Collapse Effect
9:12
Josh Hall
Рет қаралды 33 М.
How to Design a Blog Post Template with Divi’s Theme Builder
22:53
Elegant Themes
Рет қаралды 144 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18