• Resolved leyden

    (@leyden)


    Dennis: Very nice work, thank you. I am using Librio for managing static pages, and my Home page is set to a static page.
    1) If I name a static page ‘Home’, is there a way to suppress listing a second instance of ‘Home’ on the horizontal list of pages above the content box, used for navigation?
    2) Which template file and php command would I modify to suppress the display of a page title in the body? Don

Viewing 2 replies - 1 through 2 (of 2 total)
  • 1) You will need to remove the link from header.php template file. You should see your primary navigation area where the pages are listed; if the “home” link was included with the theme, it will be in a list item.

    2) Your page.php file would be the correct place; not sure what you mean by suppress, though…

    Thread Starter leyden

    (@leyden)

    Thank you Bubel. Your suggestion to check header.php in the nav area was what I needed. Here is how I resolved it in case others need it: I added “exclude=42&” in the PHP command which was <?php wp_list_pages(‘title_li=’); ?>, so it became <?php wp_list_pages(‘exclude=42&title_li=’); ?>. 42 is the page ID of the page I did not want appearing in the horizontal nav list (because it was the static Home page which appeared anyway). I found the page ID, 42, by going to the Manage Pages section and hovering over the page name of interest and observing the url. This did the trick and resolved my question 1).

    After the fix described above, I decided the change to page.php was not needed and it looked fine as is and hence question 2) goes away. BTW, I meant ‘not shown’ when I used the word ‘suppress.’

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Static Page Nav’ is closed to new replies.