• Resolved Shane Barnes

    (@slb923)


    Hi guys. Trying to figure out how I can create a site in WordPress with navigation similar to this one:

    https://www.wallacklaw.com/

    As you can see it’s a single page WordPress site and I’d like to create a similar navigation from the WordPress menu where I can link to particular posts on the front page.

    I do know how to use anchor links in static sites, but have no idea how to do so in WordPress in such a way that I can change menu items on the fly and still maintain the same functionality. Anybody out there know how to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve done in the past with a super simple page template, where I pull the various content blocks using wp_query and display them in divs.
    The code that I use for each page is as follows:

    <?php
    	$new_query_1 = new WP_Query();
    	$new_query_1->query(array( 'page_id' => 2 ));
    	while ( $new_query_1->have_posts()) : $new_query_1->the_post();
    	  the_content();
    	endwhile;
    wp_reset_query(); ?>

    You just need to change the page_id for each query.

    It’s not very sophisticated, but it works.

    A fancy way to do this is like these guys – https://support.shakenandstirredweb.com/shaken-grid/
    You could download this free theme and re-purpose it perhaps?

    Hello again Shane, I also wanted to say that I moved your thread to the Themes and Template section. Your not trying to Hack, you’re trying to Design. ??

    Thread Starter Shane Barnes

    (@slb923)

    Excellent, thanks so much for your help, Christine. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Single Page WordPress Navigation’ is closed to new replies.