• Im working on the following website and would like to know if it is possible to link the navigation tab of Terms & Conditions to an anchor that is on the same homepage, only further down, is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The only way that I personally know would be to edit the code on the template itself and add “Terms & Conditions” as it’s own link with the anchor.

    Thread Starter suizka

    (@suizka)

    Thanks Krissy, do you know what code I would have to put in, including the anchor on the text? Is it complicated?

    <ul id="navlist">
    						<li class="<?php if ( is_home() or is_archive() or is_single() or is_paged() or is_search() or (function_exists('is_tag') and is_tag()) ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php echo get_settings('home'); ?>/">Home</a></li>
    
    						<?php wp_list_pages('sort_column=menu_order&depth=1&title_li'); ?>		<li> <a href="#termsandconditions">Terms & Conditions</li>
    					</ul>

    Note, that this will place the terms and conditions at the end of the list, there is no way to work it into the middle (as far as I know).

    The only change made was adding another list item before the closing tag.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it possible to link navigation tab to anchor link?’ is closed to new replies.