simple.. need to add a Back to Top link on a page… went to header.php and added this <body <?php body_class(); ?>>
then this Back to the top on the page..
not working. help!
]]>I’m linking to headings in an FAQ from links at the top of the page, and from a text widget on the side. Somehow, when I click a link goes to just below the heading, so the heading can’t be seen.
So far I’ve tried \a name=”item”\, \a id=”item”\, I’ve included a non-breaking space in the anchor, which gives me an underlined space (and when I removed the underline with some css, the editor removed the space). A line break gets removed by the editor. A non-breaking space outside the brackets works a treat until the editor takes it out again.
The only method that seems to work at the moment is to have the underline space inside the named anchor, or to put the anchor in the previous item, neither of which is really satisfactory.
What am I missing? I’m not a programmer, so it could be anything! Thanks for any help!
]]><strong><a name="ODOR">WASTEWATER ODOR CONTROL BASICS</a></strong>
<a title="Wastewater Odor Control" href="https://www.orleanswateralliance.org/?page_id=117#ODOR">WASTEWATER ODOR CONTROL</a>
#ODOR
part, and just displays at the top of the PLANNING page.<a name="ODOR"></a>WASTEWATER ODOR CONTROL BASICS
, but that didn’t work.Basically, we need a way to redirect the old url with a named anchor to a new url with no named anchor.
A quick snippet of Javascript tucked away neatly in the header would do the job … but with WordPress, that’s not so easy. We can’t tuck it into a header.php file that would apply to every single page on the site.
Ideas, anyone?
]]>