Thursday, July 15, 2010

Re: Jquery nav disabled in Django base template??? help please

Solved it!!!

really stupid! I knew it would be something like this. I removed
class="active" on home, now it works. Seems django was resetting to
default base.html settings. It doesn't do this in straight HTML. So
now I'll have to set the home active onload dynamically.

hope this tip helps someone.

<ul id="nav">
<li class="home"><a class="active" href="/
home/"><span>Home</span></a></li>
<li class="about"><a class="" href="/about/"><span>About</
span></a></li>
<li class="work"><a class="" href="/work/"><span>Work</
span></a></li>
<li class="blog"><a class="" href="/blog/"><span>Blog</
span></a></li>
<li class="contact"><a class="" href="/
contact/"><span>Contact</span></a></li>
</ul>

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate