Support » Themes and Templates » CSS and Page Jumps

  • 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 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)


Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi


    Forum Moderator

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

    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.

    Many thanks!

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS and Page Jumps’ is closed to new replies.