Third shot
Second shot
Thanks, just got the same result the pages don’t load just got the preloader bouncing animation. Cleared cache, same result.
Hi, thanks, but unfortunately adding that broke the functionality of my site, it wouldn’t load correctly (am guessing the theme must use nivo maybe for my front page sliders) or I’m using the WP Bakery plugin (may use Nivo too). I tried just deregistering the script part of the function above, but it gave errors after that.
It works, but it messes up my already installed lightbox. It creates my lighbox versions, then when I close it the download manager previews are behind it. How can I disable the lightbox of the download manager?
Thanks, I feel so stupid now for not picking up on that ! ๐
That’s where I put it, and it doesn’t read it. I’m using a child theme, does it need to go in the original theme folder or the child theme folder, mind you I tried it in both.
I created the single-wpdmpro.php based on the page-default template, I made some slight changes to the spelling of a word on the single-wpdmpro.php file. Cleared the cache and reloaded, still didn’t show the changes. Not sure what I’m doing wrong. As I say I have the solution working, but I’d rather do it the correct way rather than edit core files.
Thanks for the clearer explanation, I understand it now. Could you please mark your reply above as private to hide my URL’s please ? ๐
I’m not sure what’s wrong with my install, but the only way I can do this is to edit the template files directly.
I altered the page-default template (making a backup of the original first). Got the functionality I wanted, but when I follow the instructions in your link, doesn’t seem to work if I create a single-wpdmpro.php file in a subfolder of my theme called download-manager? Should it be in a sub folder of the download-manager folder?
Sorry Shahriar, don’t follow that at all.
Do you mean I need to create a single-wpdmpro.php file somewhere and edit that with conditional statements to check for certain categories?
If so, how?
I’m not seeing the query strings any more either, so I don’t know what’s happening. The downloads and details buttons still work correctly though.
I could’ve sworn I’d replied to this already.
Thanks for the response, and for the information, where is the wdpm-category used? as a slug, when I hover the downloads on my site I get URL’s like this..
https://domain.com/name of category/#
When I hover over the download button,
When I hover over the details button I get
https://domain.com/wpdm-package/name of download
This is while my settings are as seen in the screenshot.
I’d like mine to show
https://domain.com/downloads/name of category/# For the download button
and
https://domain.com/downloads/name of download for the details
I’m confused can you help me forward with this.
By the way I saw that you recommend the file manager addon in other posts, sorry but $49 to delete files is a bit crazy. There’s got to be another way. If I could only work out what files are attached to the package and delete from there.
Is there somewhere else I can see what files are attached to the download package? So that I can delete the additional ones?
So true. I’ll stick with the PHP approach then, and thanks.
I’ve been told of another way, I’m posting here in case others have the same problem. Add the following to custom css, or as part of a child theme css.
.single-wpdmpro .content-area .entry-thumb {
display: none !important;
}
Still appreciate your solution though. Both work.
Thank you !!
I was on the right track, I just didn’t know the syntax of the command, and didn’t want to put something that would break the site. I really appreciate your help with this Shahriar ๐
I added it to a child theme version of the same file and it worked straight away.
Just did it again, it accepts the username password, then the thing spins round, then your advert for optin magic pops up, but the box stays on the screen. It’s like it’s missing a refresh or something. Anyway, hitting F5 reloads and I’m logged in.
Hi,
I did that already same thing, the strange thing is that it doesn’t always do it, sometimes it goes straight in, other times it just hangs there. It’s no big problem, I just hit refresh, but others might not.
I tried, but the logic was confusing me. I know I have to check to see if a post type !==wpdmpro so in other words if it’s not equal do download manager don’t print a thumbnail. What’s confusing is there’s code to display a thumbnail in content.php and image.php ..
Turns out the thumbnail code isn’t in single.php.
Single.php calls other PHP code to build up the page, making it more tricky. It reads in a content.php which then reads various parts of a template, including a part to display the thumbnail.
I’m looking in there to test for a wpdmpro post type, a bit out of my league though some of this. I’ll try though.
Thanks Shahriar for working out what was happening there. I’ll try the second option.