Sidebar Links not working
-
I built my theme myself and I am by no means an expert. I must have messed something up but I can’t for the life of me figure out what it is. The problem I’m having is getting my links in my sidebar to function on my blog page (the only page that uses the sidebar). The only link that I’ve been able to get functioning is my link to my facebook fan page. I have made the side bar dynamic and try adding text widgets with links and categories widgets and they show up but with out their links functioning.
My site is traceycameron.ca if anyone smarter would be so kind as to have a look at my code I would be eternally grateful.
-
All links seem to be functioning to me. Each link is going to it’s appropriate page.
One note to consider, you might want to add
target="_blank"to your links, so they open in a new window. Having a direct link causes them to “lose” your webpage… and they might not ever return 😉On line 22 of your style.css, your #content div is floating over your sidebar. Causing your sidebar to effectively sit behind your content div, which is why the links don’t work.
Reducing the width of the #content div from:
width: 780pxto say:
width: 580pxshould fix your problem. (may have impact else where on your site, haven’t checked)
I think the sidebar problem is on this page: http://traceycameron.ca/news/
harmck you are my herro, thank you for spotting that! It’s always such a simple fix isn’t.
Josh thanks for the note about my nav links, I was debating whether to do that but I was under the impression that having a new window open for each link is considered bad form.
@ harmck… Good call 😉
@ tecameron…
I don’t think it’s bad form. I mean, what website designer wouldn’t want to do everything possible to keep users on their site?
As a designer, I know I want to keep them. And as a surfer, I actually prefer new windows. However, I do wish there was a standard… it can be confusing sometimes.
One think I have been doing a lot lately is click event tracking how people use the websites I develop, that way you can track how many people are clicking on your external links, and monitor the behaviour accordingly. Typically if it’s an external link though, to say your facebook, linkedin etc. it’s normal to have this open in a new tab/window. Again, it’s user preference.
Some SEO guys I have worked with demand this, as keeping a user on the site is their main goal.
@tecameron, am glad that sorted the problem. All the best.
@ harmck,
Very interesting. I primarily do graphic design and some light php work. But that’s very nice to know.
I definitely agree… if you’re linking internally, you definitely don’t want a new window.
And I use it for the same reason; facebook, twitter, etc. links.
Thanks for the input 🙂
The topic ‘Sidebar Links not working’ is closed to new replies.