Insert anchors in a post

  1. crispijn


    When I'm writing a long tutorial for my blog I always make an index with anchor links in it. I really miss this function in the WYSIWYG editor... Ofcourse I can add the anchors in the html manually but this is really time consuming!

    Is it possible to make an ajustment/plugin to add this feature in the WYSIWYG editor?

    I'm looking forward to this plugin.

    Posted: 9 years ago #
  2. codejunkie

    Could I have a little more information please?

    Posted: 9 years ago #
  3. tiempo76


    I think crispijn is saying that for any giving post/page of length, crispijn makes a mini-table-of-contents: a few clickable headings that bring the reader the pre-designated spots within the post/page.

    This can be done manually (adding anchors), but it would be swell if it was an automatic part of the editor.

    Posted: 9 years ago #
  4. jeremyhelm

    Yeah, how does one manually insert anchors in the first place? I know this thread is about automating this - and that would be lovely, please do - but it's the only place I've been able to find even discussing the topics. So if y'all could oblige me with some help - an explanation or a link?

    Posted: 9 years ago #
  5. laferney

    The simplest way for you to learn how to do this is to just look at the code from a page that does it. You will see pairs like this:

    <a href="#foot_note_1">see foot note</a>
    which makes a link that jumps to
    <a title="foot_note_1"name="foot_note_1">foot note</a>

    Just in case you don't know - in your browser click VIEW then PAGE SOURCE to examine the code for any web page.

    Just remember that you have to be in HTML code view of the WP editor (not VISUAL) when you add this feature to a post. Copy and paste in the anchor pair and play with it for 10 minutes and you won't have a problem.

    Posted: 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    2 Votes
  • Status

    This is plugin territory