Tagged: download .exe file trouble
I have recently been asked to convert a simple html site to wordpress and cannot create a simple link to a downloadable .exe file stored on the same server. The site is
http://visionitsystems.ltd.uk and the .exe file resides at: http://visionitsystems.ltd.uk/exe_files/visionit.exe
WordPress is being very clever and suggesting the page/post does not exist and directs me to the default 404 page of the theme. How do I get around this please, or am I just being stupid!@
Many thanks in advance
All sorted…. I was being stupid. Now I have a corrected path to the file it does work – although the client has asked me to link the header logo to the same .exe file. Can this be done please?
The link is: http://visionitsystems.ltd.uk/visionIit.exe
Sure, open header.php, go to line 153:
echo avia_logo(AVIA_BASE_URL.'images/layout/logo.png', false, 'strong');
Replace it by this:
echo "<a href='http://visionitsystems.ltd.uk/visionIit.exe'><img src='YOUR_LOGO_PATH'></a>";
Sorry to bother you again…
This does not seem to work – it displays a missing image icon and knocks the menu down out of the header div.
I replaced ‘YOUR_LOGO-PATH’ with ‘images/layout/logo.png’ thinking that might draw in the image – but it still displays missing image icon?
The client is not that bothered in having it working – so happy to leave it there. Thanks for your reply though.
You need to use the full path: http://visionitsystems.ltd.uk/wp-content/uploads/2013/10/visionitlogo.png
Ahhh. now that works – but my menu is still falling into the main content of the page?
Oh, i forgot you must add the .class logo the hyperlink:
echo "<a href='http://visionitsystems.ltd.uk/visionIit.exe' class='logo'><img src='http://visionitsystems.ltd.uk/wp-content/uploads/2013/10/visionitlogo.png'></a>";
The topic ‘Big trouble creating a link from an image to .exe file’ is closed to new replies.