clickable header image
-
I’m trying to make the header image clickable so it send you to another site. currently it is clickable but takes you to the current site.
I thought I had found the code and updated it correctly but when clicked the path it sends you to is the current site url then the url of the site I want it to go to.. below is the code with the link I want it to go to<div id="template"> <div id="header" onclick="location.href='www.craigtechinc.com/ADMC.htm';" style="cursor: pointer;"> <?php /* $head_text = '<div id="head-title">' . get_bloginfo('name') . '</div><div id="head-description">' . get_bloginfo('description') . '</div>'; */ $head_text = '<div id="head-title"></div><div id="head-description">' . get_bloginfo('description') . '</div>';
[Please post code snippets between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
the url of the site is https://www.craigtechmachineandtool.com
the URL of the site I want it to send you when you click on the header image, https://www.craigtechinc.com/ADMC.htm
the url it currently sends you to using the above code
https://www.craigtechmachineandtool.com/www.craigtechinc.com/ADMC.htmI can’t figure out why it’s inserting the current url in addition to the one of the page I want it to go to.
any help would be greatly appreciated. I didn’t create the site, I was just asked to do some updates but I ahve very little WP experience and less with php..
- The topic ‘clickable header image’ is closed to new replies.