- This topic has 18 replies, 6 voices, and was last updated 8 years, 8 months ago by
Shahjada.
Hello,
after the last updates (since the last two, I think) WPDM Download-Button is no longer displayed.
In my WordPress functions.php I found the code from this Tutorial to display a bootstrap button:
The [btnclass] does not generate any class like .btn .btn-primary
what’s wrong?
Better option is available, please use this free add-on http://www.wpdownloadmanager.com/download/wpdm-image-button/
thx for your response.
I installed the plugin-add-on. The Image Buttons work fine, but the Bootstrap Buttons without image, won’t still work.
The shortcode [btnclass] still does not generate any class…
Here an example: http://www.dupp.de/download/dupp-support-tool-meeting/
Seems like you disabled Style & Script from admin panel► settings►Misc Settings.
Yes, I have disabled the Style & Script, because I already use Bootstrap CSS und JS in my Theme, so that I don’t need it twice.
But it doesn’t make any difference, if I enable these.
The shortcode [btnclass] still does not generate any class…
[btnclass] replaced or not, if you select bootstrap btn from add-on and you theme has bootstrap css, then button should be visible properly, however, please give me temporary wp-admin login info in a private reply, I shall check the issue.
Same here, any updates?
Releasing update with the fix within next 1-2 hours.
Yeah is still doesn’t work, but there is another way.
add_filter(“wpdm_after_fetch_template”, function ($template){
$template = str_replace(‘[btnclass]’, ‘btn btn-default’, $template);
return $template;
});
Nice Hack @bruno. Any updates on a real fix for this?
Use this add-on:
The topic "[btnclass] not working – btn classes not generated" is closed to new replies.