CSS and Page Jumps (4 posts)

  1. cyndin
    Posted 5 years ago #

    Note: am using 2.9.2 but it wasn't an option.

    As a prelude to revamping a website in a blog format, I am moving over large pages from the old site (that someone else wrote). There are dozens...hundreds...of internal links (what you all call "page jumps"). I know how to do these in HTML (they're all done already anyway) and, thanks to the WordPress article http://en.support.wordpress.com/splitting-content/page-jumps/ I learned that the secret to making the code work within a blog is to add "[a name="top"][/a]" at the top of the HTML code.

    I can do this by hand but there will be at least 27 pages (A-Z plus an overview) and likely more. Is there anything I can add to the CSS, or another page of my theme's code, to have "[a name="top"][/a]" automatically entered correctly every time I create a new post? (square brackets used instead of angle brackets)


  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try using <body id="top"> in header.php.

  3. cyndin
    Posted 5 years ago #

    I could not figure out where to put it, so I added your line after the html line and before the head profile line. I did a test page without adding the code by hand to the actual post and the links do seem to work. I'm getting some strange formatting which I'm not sure is related. It's on the new post but not on my about page. The font for the "recent posts" (widget on right side) is bigger than it is supposed to be. http://ehnca.org/e/

    Many thanks!

  4. marjiec
    Posted 5 years ago #

    You put it in the wrong place. You will need to remove it and add it where it belongs. Look for the body tag. It will say just <body>.
    type in the id="top" like esmi said.

Topic Closed

This topic has been closed to new replies.

About this Topic