Avatar of nsitedesigns
nsitedesigns
Flag for United States of America asked on

anchor links not working in wordpress

I added anchor links to a beta site in wordpress.  I added them directly to the code, not using a plug-in. They sorta work.  Rather than taking you down to the SUBHEADER of the section you are jumping to you go right to the TEXT . You BYPASS the subheader.  I tested code in dreamweaver and it works fine.  Any ideas on how to fix?
 Our construction process at Landmark Landscape  is focused on building the yard of your dreams! Our landscape construction services help you unlock the true potential of your outdoor space as an expression of your unique style and taste. Patio Living Areas Outdoor Kitchens and Fireplaces Retaining and Seat Walls Arbors and Pergolas Ponds and Water Gardens Pondless Waterfalls Electrical Service Plumbing and Water Lines Grading for Topography Drain Tiling Utility Coordination
Patio Living Areas
Our craftsman transform clay brick, natural stone, and pavers into patios for entertaining friends and family, grills for cooking, fireplaces gathering, garden walls for terraces and privacy. 
Outdoor Kitchens and Fireplaces
Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.
Retaining and Seat Walls
Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.
Arbors and Pergolas
Lumber and reclaimed timber become pergolas and arbors to create shade and provide a sense of enclosure.
Ponds and Water Gardens
Piles of granite boulders are transformed into babbling brooks, cascading waterfalls and tranquil water gardens. 
Pondless Waterfalls
Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.
Electrical Service
Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.
Plumbing and Water Lines
Water efficient irrigation systems, keep your property looking beautiful all growing season long.
Grading for Topography
Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.
Drain Tiling
Mounds of soil are sculpted to create berms for privacy and swales for drainage. 
Utility Coordination
Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here. Contact us for more information. 

Open in new window

WordPressWeb Development

Avatar of undefined
Last Comment
nsitedesigns

8/22/2022 - Mon
Jason C. Levine

I don't see any anchors in the code snippet?
nsitedesigns

ASKER
oops.  try this
<a href="#patio">Patio Living Areas</a>
<a href="#outdoor">Outdoor Kitchens and Fireplaces</a>
<a href="#retaining">Retaining and Seat Walls</a>
<a href="#arbors">Arbors and Pergolas</a>
<a href="#ponds">Ponds and Water Gardens</a>
<a href="#pondless">Pondless Waterfalls</a>
<a href="#electrical">Electrical Service</a>
<a href="#plumbing">Plumbing and Water Lines</a>
<a href="#grading">Grading for Topography</a>
<a href="#drain">Drain Tiling</a>
<a href="#utility">Utility Coordination</a>
<h2><a id="patio"></a>Patio Living Areas</h2>
<span style="color: #000000;">Our craftsman transform clay brick, natural stone, and pavers into patios for entertaining friends and family, grills for cooking, fireplaces gathering, garden walls for terraces and privacy. </span>
<h2><a id="outdoor"></a>Outdoor Kitchens and Fireplaces</h2>
<span class="Apple-style-span" style="color: #ff0000;">Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.</span>
<h2><a id="retaining"></a>Retaining and Seat Walls</h2>
<span class="Apple-style-span" style="color: #ff0000;">Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.</span>
<h2><a id="arbors"></a>Arbors and Pergolas</h2>
Lumber and reclaimed timber become pergolas and arbors to create shade and provide a sense of enclosure.
<h2><a id="ponds"></a>Ponds and Water Gardens</h2>
<span style="color: #000000;">Piles of granite boulders are transformed into babbling brooks, cascading waterfalls and tranquil water gardens. </span>
<h2><a id="pondless"></a>Pondless Waterfalls</h2>
<span class="Apple-style-span" style="color: #ff0000;">Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.</span>
<h2><a id="electrical"></a>Electrical Service</h2>
<span class="Apple-style-span" style="color: #ff0000;">Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.</span>
<h2><a id="plumbing"></a>Plumbing and Water Lines</h2>
<span style="color: #000000;">Water efficient irrigation systems, keep your property looking beautiful all growing season long.</span>
<h2><a id="grading"></a>Grading for Topography</h2>
<span class="Apple-style-span" style="color: #ff0000;">Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.</span>
<h2><a id="drain"></a>Drain Tiling</h2>
<span style="color: #000000;">Mounds of soil are sculpted to create berms for privacy and swales for drainage. </span>
<h2><a id="utility"></a>Utility Coordination</h2>
<span class="Apple-style-span" style="color: #ff0000;">Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.Insert text here. Insert text here.</span>

<a title="Contact" href="http://wilandscaper.com/contact/">Contact us</a> for more information.

Open in new window

ASKER CERTIFIED SOLUTION
Gary

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
nsitedesigns

ASKER
Hi Gary!
I tried that first and it has the same problem as the other way.  It takes you to BELOW the h2.

http://wilandscaper.com/construction/#patio
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Emad Gawai

it works fine on your site, i dont see any issue
nsitedesigns

ASKER
Well that is weird.  It wasn't working before.  Maybe it was a cache issue.....