• Hey guys/gals,

    This is my first post here, so be gentle. I started a new blog, Project Nothing!, and I would like to add a “Bookmark Me” link to my sidebar. I’ve searched around the support forums and the codex, but I wasn’t able to find anything. Any help would be great, and if you’ve got a blog of your own perhaps I’ll link you up in a post (because I get so many visitors!) to return the favor.

    Thanks guys, happy blogging.

    Oh, and wordpress > the internet.

    -nate

Viewing 8 replies - 1 through 8 (of 8 total)
  • https://www.dynamicdrive.com/dynamicindex9/addbook.htm

    I would imagine that something like that bit of javascript will do, as would advising your (Windows) viewers to press CTRL-D which does the same.

    Thread Starter arthurvandalay

    (@arthurvandalay)

    Thanks!

    I’ll give it a try and see if I can get it to work. I’ll let you guys know how it goes and I’ll stop back by if I have any further questions.

    I’d like to include an image, but I’m not sure if it’s possible.

    Thread Starter arthurvandalay

    (@arthurvandalay)

    Hmm, I tried getting the Javascript to work and I didn’t have any luck. I tried putting the first set of code in “header.php” as it was the only place i could find head and body tags. I then placed the second link in the sidebar template, but no dice. . .

    Anyone have any further suggestions? Thanks.

    Thread Starter arthurvandalay

    (@arthurvandalay)

    Anyone?

    Thread Starter arthurvandalay

    (@arthurvandalay)

    Another shot, thanks.

    ??

    I’ve had success in adding JavaScript functions to my site by doing the following:

    1. Save the JavaScript functions to be used to an external file. I’ve usually used the theme folder for the site I’m developing. So, if your theme is contained in root/wordpress/wp-content/themes/mytheme, I’d put the JavaScript function external file in a root/wordpress/wp-content/themes/mytheme/scripts directory.

    2. Go into your header.php file for the theme. Towards the top of the file, find the links to the stylesheets and other things like pingback. Underneath those entires, add the following line to link to your JavaScript file (this code is used to make it pick up your theme directory name properly) (I’m assuming the file is named “scriptfile.js”):
    <script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/scripts/scriptfile.js”></script>

    3. You should now be able to use the JavaScript function in your template files. For something like this, I’d suggest using the function in the layout for the post, or maybe the sidebar.

    You should note that if you’re trying to use these JavaScripts within the body of a, the default WordPress behavior of running posts through a formatter like Texturize or whatever…you may want to find a plugin that turns this off on a post-by-post basis, at least to test the script before altering your templates.

    Hope this helps!!

    Thread Starter arthurvandalay

    (@arthurvandalay)

    I’ve been busy but I will try it when I get a free minute. I appreciate your response greatly.

    hi. i had the same problem on my blog. i found knight’s Submark plugin, but i wanted to find something more simple, that wouldn’t require registration

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘“Bookmark me.” link ?’ is closed to new replies.