Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Anchor links to a another part of another page in Wordpress

Featured Replies

Hello all

 

I am trying to create anchor links to jump to different sections of different page, but I can't seem to figure out how to do it in Wordpress. I have a link from the home page that when pressed I want it to jump to a specific section on the about us page.

 

I created the pages in HTML first and had the following code which worked fine.

 

Home Page

 

<h1><a href="about.html#class" title="Class">Classes</a></h1>

About Us

 

<h3><a name="class">Class</a></h3>

I'm not sure how to get this to work in Wordpress.

 

Can anyone point me in the right direction?

 

Thanks

add the id="class" within the <a> like

 

 

<h3><a name="class" id="class">Class</a></h3>

 

this does it for me on my theme

Leave that the way it is

 

<h1><a href="about.html#class" title="Class">Classes</a></h1>

the about.php will link to the about page then the #class will anchor down to the <div> with the id="class"

This should work :

<a href="index.php?page_id=10#class">

change '10' to the id of your about page.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.