How Do I Link a Scroll Down Page in WordPress?

Linking a scroll down page in WordPress is easy. Just add the following code to your theme’s functions.php file:

function scrollTo() {

if ( is_page( ‘page-name’ ) ) {

$page = get_page_by_id( ‘page-name’ );

echo ‘‘ . get_the_title() . ‘‘ ;.

}

To link to a specific paragraph on a scroll down page, use the get_the_title() function:.