Modify href with Jquery

Asked

Viewed 19 times

0

Personal Beauty?

Next, I’ve been racking my brain for days and I can’t find the solution I need. I’m developing a onepage wordpress site. I created all the pages I need (index, about, contact etc) and I’m calling them using the Jquery load. However, I don’t know JS and Jquery and my problem is this:

  • I wanted to change my href from the menus ex.: meusite/about to #about. But I don’t know much about JS or Jquery. I wonder if it is possible to do this? How can I do that?

Comments: I did so href because from what I understood it would be better for the site’s SEO, "google" would browse my site by links and index it better. In case I’m wrong about something here, let me know what and, if possible, how I find the answers, even why I didn’t find much clear on the web. Thanks in advance for everyone’s attention, I’m starting in this area so any help will be very welcome.

  • You have a similar question here https://answall.com/questions/298099/modifir-attributehref-via-jquery?rq=1. Have a look to see if it helps you.

  • Did not help me friend. I ended up having to do a gambiarra (in my opinion at least). I will continue trying to find the solution. Thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.