Viewing 2 replies - 1 through 2 (of 2 total)
  • I decided to embed the Galley page into the functions.php that creates the correct listing but not the sub header I want but will suffice.

    functions.php

    Additional line

    echo '<li class="cat-item cat-item-36"><a href="https://www.williamwilsonphotography.co.uk/?cat=36" title="Gallery item posts">Gallery</a>';

    Location

    // Produces a list of pages in the header without whitespace -- er, I mean negative space.
    function sandbox_globalnav() {
        echo '<div id="menu"><ul><li class="page_item"><a href="'. get_settings('home') .'/" title="'. get_bloginfo('name') .'" rel="home">Home</a></li>';
    	$menu = wp_list_pages('title_li=&sort_column=menu_order&echo=0'); // Params for the page list in header.php
        echo str_replace(array("\r", "\n", "\t"), '', $menu);
        echo '<li class="cat-item cat-item-36"><a href="https://www.williamwilsonphotography.co.uk/?cat=36" title="Gallery item posts">Gallery</a></li>';
    	echo '<li class="page_item"><a href="'. get_bloginfo_rss('rss2_url') .'">RSS</a></li></ul></div>';
    }

    I embedded the header image in the categories page so it’s hardwired but works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Autofocus category page’ is closed to new replies.