-
1. Re: Setting up nav with template
MurraySummers Jul 18, 2011 11:25 AM (in response to quality11)Is there a way to add "current" to each page w/o making the main nav editable.
Yes. The very easy way to do it would be to do two things:
1. Add a unique id to each link in your nav element, e.g.,
<a id="link1"...
<a id="link2"...
2. and then in each page, embed a small stylesheet in the editable region of the head of the page like this -
<style type="text/css">
a#link2 {
/* add your 'current' styles here */
}
</style>
Obviously this would be for the page linked to by the #2 link in the nav element. So, you make changes in the editable region that affect the styling of content within the non-editable region of the navigation.
Does that make sense?
-
2. Re: Setting up nav with template
quality11 Jul 18, 2011 11:37 AM (in response to MurraySummers)Thanks Murrry. It does. Less editing....I'll give it a try right now.
-
3. Re: Setting up nav with template
quality11 Jul 18, 2011 11:54 AM (in response to quality11)What am I missing? It won't work.
Code:
In head:
<!-- InstanceBeginEditable name="style" -->
<style type="text/css">
a#link1{color:#990000;}
</style>
<!-- InstanceEndEditable -->In HTML:
<div id="navcontainer">
<ul id="navlist">
<li><a href="index.html" id="link1">HOME</a></li>
<li><a href="schedulefees/index.html" id="link2">SCHEDULE/FEES</a></li>
<li><a href="scheduleonline/index.html" id="link3">SIGN UP ONLINE</a></li>
<li><a href="about/index.html" id="link4">INSTRUCTORS</a></li>
<li><a href="pilatesteachertraining/index.html" id="link5">TEACHER TRAINING</a></li>
<li><a href="contact.html" id="link6">CONTACT</a></li>
<li><a href="testimonials.html" class="last" id="link7">TESTIMONIALS</a></li>
</ul>
</div> -
4. Re: Setting up nav with template
John Waller Jul 18, 2011 12:49 PM (in response to quality11)What am I missing? It won't work.
Should work based on the code snippet you've shown us.
What are you seeing?From your code, the current button Home should be in red text.
Easier if you upload your problem page and post a link so we can see the whole page and test it for ourselves.
-
5. Re: Setting up nav with template
MurraySummers Jul 18, 2011 12:49 PM (in response to quality11)That will certainly work provided there is not some other higher-priority rule that applies to that link. Also, if your stylesheet link is BELOW the editable region in the head, it's likely that those rules may conflict. Can I see the whole page?
-
6. Re: Setting up nav with template
quality11 Jul 18, 2011 1:01 PM (in response to MurraySummers)Yes.....posting it in one second....let me upload it....
-
7. Re: Setting up nav with template
quality11 Jul 18, 2011 1:05 PM (in response to quality11)Here's a test page: http://www.rosepilates.com/test.html.
-
8. Re: Setting up nav with template
MurraySummers Jul 18, 2011 1:10 PM (in response to quality11)Yep - change this -
<style type="text/css"> a#link1{color:#993333;} </style>to this -
<style type="text/css"> #navlist a#link1{color:#993333;} </style> -
9. Re: Setting up nav with template
quality11 Jul 18, 2011 1:36 PM (in response to MurraySummers)Dah....thank you so much, Murry! I should have checked in Firebug -- I probably would have caught my mistake. Thank you!
-
10. Re: Setting up nav with template
John Waller Jul 18, 2011 1:39 PM (in response to quality11)What Murray said.
This rule in http://www.rosepilates.com/css/style-new.css
#navlist a:link, #navlist a:visited{
color: #999999;
background-color: #fff;
text-decoration: none;
}is trumping your a#link1 rule so you're only seeing gray text (#999999).
So you make the a#link1 rule more specific (as Murray has shown you) so that it trumps the rule above.
-
11. Re: Setting up nav with template
quality11 Jul 18, 2011 1:43 PM (in response to John Waller)Got it. Thank you both so much for your help!
-
12. Re: Setting up nav with template
quality11 Jul 18, 2011 2:04 PM (in response to quality11)Can you both take a look at this page in Safari only I think and tell me if you get a Cookies message: http://www.rosepilates.com/schedulefees/index.html? If so, do you know how to fix? It probably has to do with the iframe. I and the client got it in Safari only I think. Thank you!
-
13. Re: Setting up nav with template
MurraySummers Jul 18, 2011 2:21 PM (in response to quality11)Yes, I see that alert.... It's indeed coming from the iframe page's code. Erroneously, too, as I have cookies enabled on this Mac.
-
14. Re: Setting up nav with template
quality11 Jul 18, 2011 2:33 PM (in response to MurraySummers)Any idea how to fix?
-
15. Re: Setting up nav with template
MurraySummers Jul 18, 2011 2:34 PM (in response to quality11)Change the code on the page you are loading in the iframe, unfortunately.
-
16. Re: Setting up nav with template
quality11 Jul 18, 2011 2:38 PM (in response to MurraySummers)Hmm......do you know which part? Is it happening in your Safari browser only?
-
17. Re: Setting up nav with template
MurraySummers Jul 18, 2011 2:52 PM (in response to quality11)It's not happening in FF 3.6.19 or in Opera 10.10 on my Mac. And which part? It would likely be in the VBScript code that is on the page. But you would have to access the FTP of that site to see that.
-
18. Re: Setting up nav with template
quality11 Jul 18, 2011 3:02 PM (in response to MurraySummers)Okay, thanks. So only in your Safari browser.
I have access to the site from which we are pulling with the iframe and I have FTP accesss to the site with the page that is producing the code error. Should I post in another Adobe forum since it's code not DW?
-
19. Re: Setting up nav with template
MurraySummers Jul 18, 2011 4:43 PM (in response to quality11)The Applications Development forum might be better for ASP related questions. But I'm not sure about the fact that it's confined to Safari only....
http://forums.adobe.com/community/dreamweaver/dreamweaver_development
-
20. Re: Setting up nav with template
MurraySummers Jul 18, 2011 4:44 PM (in response to MurraySummers)Why not just move some of the code over to this page instead of using the iframe?
-
21. Re: Setting up nav with template
quality11 Jul 18, 2011 7:33 PM (in response to MurraySummers)Hmmmm.....I'm not following you. Client uses a system called Mind Body where she updates and keeps her schedule. We have to pull in the schedule piece from that system. Does that make sense or am I not understanding the question?
-
22. Re: Setting up nav with template
MurraySummers Jul 19, 2011 3:56 AM (in response to quality11)I was just asking whether you could duplicate the code from the iframe site that is generating that schedule. Doesn't sound like it.
Can you ask the provider of the service what to do?
-
23. Re: Setting up nav with template
quality11 Jul 19, 2011 4:03 AM (in response to MurraySummers)I wish :-). They won't help with "3rd party things" or something and don't offer support on iframes even though many sites use that so they won't help.
Thanks so much for your help again, Murray. I posted it in the Development forum. Maybe someone there can help. Again, soooo appreciate your help!


