OPENDAP / Website

template repo for website project management
0 stars 0 forks source link

Hyrax Subpage: Fix behavior of links that navigates to top of another subpage. It should go to specific header within that subpage #23

Closed Mikejmnez closed 1 week ago

Mikejmnez commented 2 weeks ago

Description

Some links, for example our partners in the Hyrax Data Server subpage (see screenshot below), should navigate to a particular subsection to another subpage. For example, in this case it should go to "Servers" within the Interoperability . This is usually done by adding the #Servers header to the url. Right now:

1) The link goes to the top Interoperability page (it should go to a Servers) 2) Adding #Servers to the Interoperability url also takes you to the top of the page.

Visual Aid

Screenshot 2024-06-18 at 11 17 59 AM

Solution

In wordpress, content is divided into blocks, each block with an identifier. To correct the behavior of the url above described, we need to add #single_column_content-6 which identifies correctly the #Servers header in the subpage.

This should behavior be replicated in other parts of the website, if appropriate.