• On my current site, https://www.miss-brightside.com, somewhere in my code it automatically lists the pages I have created underneath my header image, and above my posts.

    Can anyone tell me what code to find to delete so I can get rid of these unnecessary links?

    in my index.php I found “<?php wp_link_pages(‘before=<div class=”page-link”>’ . __( ‘Pages:’, ‘sandbox’ ) . ‘&after=</div>’) ?>” but not sure if this correct because after deleting the links are STILL there!

    Many thanks (reason for deleting is because I am placing page links in side/on my header image in my next theme).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jeni_8686

    (@jeni_8686)

    For any with the same problem, I have gone into admin and listed page as private.

    To link to the pages you just need to give people the permalink and they can access the page… I had automatically thought making a page private meant needing login, which is why i had not considered trying this out before!

    Thanks

    I can’t see any page link under the header now. I assume you found and removed <?php wp_list_pages()?>?

    The other code you removed:

    <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?> is used to paginate longer posts using the <!--nextpage--> tag, so you may want to put that back in again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘removing automatic links to pages’ is closed to new replies.