PDA

View Full Version : I wanna change a text menu url


akira07
11-15-2008, 11:34 PM
I wanna change my text menu url, i have edit some html but it didn't working.

Try to enter akira07-cobatemplate.com (this is my blog which used for testing template/etc... so there is no post, just dummy post, etc...)

Look for this section :
* Home * Profile * Photos * Support

I wanna change it linking to my another blog/some site/other part of my blog. How i can do it?

ap4a
11-16-2008, 01:46 AM
You need to give us a bit more information - where or what is "my another blog/some site/other part of my blog"? Tell us that and we might be able to tell you how to link to it (give us a link to the page where you want the link to appear too, so we can see what other code is needed).

akira07
11-16-2008, 04:31 AM
I think there must be a change here :
<!-- menu -->
<div id='nav'>
<div id='nav_l'>
<div class='menu'><ul>
<li class='home'><a alt='Home' expr:href='data:blog.homepageUrl'>Home</a></li>
<li class='page_item page-item-2'><a href='#' title='Profile'>Profile</a></li>
<li class='page_item page-item-2'><a href='#' title='Photos'>Photos</a></li>
<li class='page_item page-item-2'><a href='http://blogandweb.com' title='Blogger templates'>Support</a></li>
</ul></div> <!-- menu -->

Ok, try to change word "Photos" to "My Indonesian Blog" and link to http://startingfrom20.blogspot.com

I have edit :
<li class='page_item page-item-2'><a href='#' title='Photos'>Photos</a></li>

become

<li class='page_item page-item-2'><a href="http://startingfrom20.blogspot.com">My Indonesian Blog</a></li> but there is no effect

navjotjsingh
11-16-2008, 12:44 PM
Did you changed the theme? http://startingfrom20.blogspot.com/ is showing no such menu where changes are needed.

akira07
11-16-2008, 02:01 PM
no, it's not at startingfrom20 but at akira07-cobatemplate.blogspot.com
Please, i need a help :D

navjotjsingh
11-16-2008, 02:14 PM
Your menu code is

<!-- menu -->
<div id='nav'>
<div id='nav_l'>
<div class='menu'><ul>
<li class='home'><a alt='Home' href='http://akira07-cobatemplate.blogspot.com/'>Home</a></li>
<li class='page_item page-item-2'><a href='#' title='Profile'>Profile</a></li>
<li class='page_item page-item-2'><a href='#' title='Photos'>Photos</a></li>
<li class='page_item page-item-2'><a href='http://blogandweb.com' title='Blogger templates'>Support</a></li>
</ul></div>
<!-- menu -->

Just replace # with url. it should work. Try clearing your browser cache after you make the change or try in diff browser if links does not show up.

I don't see reason why this is not working. And make sure you press publish button after making changes.

akira07
11-16-2008, 10:07 PM
so i need to use ' and not " ?
i learn html, and usually, we use " in the a href
ok, i'll try it...

navjotjsingh
11-17-2008, 03:13 AM
Nope....instead of ' you should replace all of them with ".

" is proper standard not '.

akira07
11-17-2008, 03:19 AM
it's work...!!!

I do change to this :
<li class='page_item page-item-2'><a href='http://startingfrom20.blogspot.com' title='My Indonesian Blog'>My Indonesian Blog</a></li>

My mistake is to delete title='.....' (i should not delete it)

thaks for your help navjotsingh

sarahG
11-17-2008, 07:18 AM
Nope....instead of ' you should replace all of them with ".

" is proper standard not '.

It makes no difference. Either of them are fine, and neither are standard. Most people are just taught or just learn to use the double quote, but it makes no difference which is used.

<li class='page_item page-item-2'><a href='http://startingfrom20.blogspot.com' title='My Indonesian Blog'>My Indonesian Blog</a></li>

My mistake is to delete title='.....' (i should not delete it)

Deleting the title attribute shouldn't have caused it not to work. My guess is you did something wrong the first time around and corrected it on the second go.

In fact, judging by your line of code above, your title is a waste there. The title attribute should only be used to add additional information about the destination URL, whereas here it's simply repeating it, so why bother? It's a usability issue and potentially an accessible issue too. If the anchor text wasn't clear then use a title attribute to add information without adding clutter visually, but in this instance it's pretty obvious what the link is for.

akira07
11-17-2008, 11:07 AM
yeah, thanks for all information and now i know to change it. Just see akira07-cobatemplate.blogspot.com and there is "My indonesian blog" link, i did it :D
Ok, all problem is already solved