- This topic has 6 replies, 3 voices, and was last updated 5 years, 5 months ago by
Nayeem Riddhi.
Hi,
I have been trying out the free version of this plugin and I am generally impressed.
All of the downloads on my site will be free, so I am not concerned with hiding them. In fact what I am trying to do is to get Google to index the contents of the PDF files.
But Google can’t seem to see PDF files. Google indexes the web page which contains the download button, but it doesn’t find the actual PDF file available for download. Is there any way that I can expose the url of the file to Google?
Thank you
Hi,
you can follow the link below documentation,
by default, you are using link-template-default.php for link template and page-template-default.php for the page template. As documentation, you have to copy the file in the theme directory naming a folder called download-manager, then paste it in page-templates for page template or link-templates for link template. And you have to replace [download_link] with <a href="[download_url]" class="btn btn-primary" target="_blank">[link_label]</a> in related PHP file.
let me know, if those help you.
Thanks.
Hi,
That worked perfectly for link-template-default.php.
The changes to page-template-default.php do not seem to work. The file has been copied to the theme’s download-manager/page-templates folder. Any idea?
Thank you.
I found the solution. None of the files had a Page Template selected.
Once I selected Default Template as the Page Template for the file, then the page picked up my changes.
It looks like if you leave the Page Template as “Select Page Template” then it won’t use the theme’s page-template-default.php. You have to specifically select Default Template.
It should work, Please, give your temporary wp-admin login details in a private reply for checking the issue.
Thanks.
Thank you very much for posting this answer, which is what I am looking for. I have one additional question. After the recommended change is made to the link template, does Download Manager still record the number of times the file has been downloaded (in History)?
Thanks.
Yes. Same behaviour you shall find.
Thanks.
The topic "How do I get files to be indexed by Google." is closed to new replies.