If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: download .exe file trouble
October 25, 2013 at 10:01 pm #180823
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 advanceOctober 27, 2013 at 2:29 am #181129October 28, 2013 at 5:16 pm #181669
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.exeOctober 28, 2013 at 7:32 pm #181739
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>";
JosueOctober 28, 2013 at 10:50 pm #181842
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.October 28, 2013 at 10:57 pm #181843
You need to use the full path: http://visionitsystems.ltd.uk/wp-content/uploads/2013/10/visionitlogo.png
JosueOctober 28, 2013 at 11:03 pm #181847
Ahhh. now that works – but my menu is still falling into the main content of the page?October 28, 2013 at 11:08 pm #181852
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>";
JosueOctober 28, 2013 at 11:24 pm #181860October 28, 2013 at 11:24 pm #181862
The topic ‘Big trouble creating a link from an image to .exe file’ is closed to new replies.