Support » Fixing WordPress » Bookmark Us Script

  • I’ve managed to insert a javascript call into my WordPress header which is supposed to provide a link for viewers to bookmark our site. Although the code is working perfectly when inserted into an html file and viewing it with IE or Netscape, it is not working with Netscape when I insert it into the php header file, it only works with IE. The link part is probably wrong, I took it from another wordpress page and just changed parameters so it’s picking up the translated text also.

    Link in a regular html can be viewed at :
    Link in the header can be viewed at :

    Both use the same script, except the latter is in a php page.

    Can someone help?

    My header contains the following code:

    Code moderated as per the Forum Rules

Viewing 3 replies - 1 through 3 (of 3 total)
  • Oops, here’s the code in the head section:

    function bookmark_us(url, title){
    if (window.sidebar) // firefox
        window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
        var elem = document.createElement('a');
    else if(document.all)// ie
        window.external.AddFavorite(url, title);

    And here’s the link code:
    <?php echo sprintf(__("<a href=\"javascript:bookmark_us('','Carnaval de Hearst Carnival')\">Bookmark our site!</a>"), __("Bookmark our site!")); ?>


    did you figure this out?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bookmark Us Script’ is closed to new replies.