Topic RSS
12:15
Hello,
Please can you help me to hide child page in sidebar.
The widget "Pages -> exclude" only work with IDs pages, no with static address.
I want display parent only on sidebar
Many thanks for your great Theme
Doum
Escuse my poor english, merci 
Hi,
the page – you want to hide – is a WP-Page? If so, the page has an own ID and should work with the "Page-Widget".
But you said "static adress"? What does that mean? How did you included the page to the menu? 
Can you give me a link to your site? (you can send me a PM too)
Thomas
17:23
Hello, thanks Thomas for your answer.
I use Permalinks to my site like :

With this structure :
/%year%/%monthnum%/%day%/
I included all of my page simply with "Pages ->add".
My site is not yet online
but bellow a screenshot :
[Image Can Not Be Found]
I want to hide "M123" 
Can you help me ?
Many thanks in advance
Doum
Hi,
if you don't use a widget, you have to customize one line of code. It's very easy to change…
1. Go to "Appearance" and than to "Editor"
2. Open the "sidebar.php" and search for this line;
<?php wp_list_pages('title_li=<h2>' . __('Pages', 'altop') . '</h2>' ); ?>
replace this line with:
<?php wp_list_pages('title_li=<h2>' . __('Pages', 'altop') . '</h2>&depth=2' ); ?>
3. Save your changes!
That's all!
"depth=2" will display only 2 level of your page-structure.
Thomas
Most Users Ever Online: 33
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 42
Members: 9
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 3
Topics: 51
Posts: 218
Newest Members: king116, gbmzxx, ichaoren, kardelen133, Bessie, isa, WebGremlin, pozzecca, mslorraine101, pcgeek
Moderators:
Administrators: Thomas (7)
Log In
Members
Home
Add Reply
Add Topic
Quote
Offline
