Anchor Text

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #19221
    mylin
    Customer

      I added anchor texts in the menu to go straight to the front page section when clicked on. It goes straight to the section, such as http://www.sample.com/#front-page-3. Except it passes the widget title of the section. Please help on how I can fix this. Thank you.

      #19231
      Eric
      Customer

        Do you have a link where this is already setup?


        I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

        #19232
        mylin
        Customer

          Hi Eric,

          I took the site off maintenance mode, http://wordpresstools.net/.

          If you click on ‘About Us’ or ‘Our Program’, it takes me past the widget title. I appreciate your help!

          #19236
          Wes
          Moderator

            @mylin everything is working correctly and pointing exactly to the ID you linked to. However, in order for it to show up at the top of both of those widgets, you would actually need to add an Id # in a higher location. The reason is because there are 2 other divs above the div you linked to. Here’s how it looks by default –

            <div class="home-mid">
            <div class="wrap">
            <div id="home-mid-left" class="home-mid-left fadeup-effect fadeInUp">
            <div class="wrap">

            Notice the home-mid and the wrap are in front of the home-mid-left. They both have padding in them so that’s why your link makes it appear that it’s going past the widget area.

            An easy way to get this working better, is to add an ID in the first div (top of the widget area) and link to it. Here’s an example –

            <div class="home-mid" id="home-mid">
            <div class="wrap">
            <div id="home-mid-left" class="home-mid-left fadeup-effect fadeInUp">
            <div class="wrap">

            Notice I added id="home-mid" in the top div. You can change the link in your menu to #home-mid and it should work fine. This can all be added in your front-page.php file. If you need assistance locating and adding this in just let me know.

            #19244
            mylin
            Customer

              Hi Wes,

              Thank you very much! I’ve transferred the site to vitalityweightlossinstitute.com and added the ID to the first div in the front-page.php file. All the links are working. Again, thank you!

              #19261
              Wes
              Moderator

                You’re Welcome!

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Anchor Text’ is closed to new replies.