Anchor tag-links on Safari
-
Hi everyone,
Due to a big tag-cloud in the header, I would like the links of this tagcloud point to an anchor on the page.
I tried to modify the category-template$a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( $topic_count_text_callback, $real_count ) ) . "' style='font-size: " . ( $smallest + ( ( $count - $min_count ) * $font_step ) ) . "$unit;'>$tag_name</a>";
to
$a[] = "<a href='$tag_link#MYANCHOR' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( $topic_count_text_callback, $real_count ) ) . "' style='font-size: " . ( $smallest + ( ( $count - $min_count ) * $font_step ) ) . "$unit;'>$tag_name</a>";
which do the trick for Firefox and Chrome.
But Safari doesn’t seem to like the “#” symbol in the URL.
I tried to add 2 different vars to add “#” and “MYANCHOR”, once again, ok for FF and Chrome but nothing with Safari…
Then I found this topic which seemed to do the trick but now none of my other anchor links worked.
So I finally come to you, hoping you’ll have a solution.
Thanks
Ps: I don’t talk Php ?? so I could have missed some newbie thing.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Anchor tag-links on Safari’ is closed to new replies.