joegeb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Header not updatinghttps://www.risdbasketball.com/team/history for example
Forum: Fixing WordPress
In reply to: delete the sidebarchanged it in both index.php and page.php – no dice.
Forum: Fixing WordPress
In reply to: delete the sidebaryes, text across the entire page. i’m new at this…
Forum: Fixing WordPress
In reply to: delete the sidebaroh, sorry. it’s the default kubrick
Forum: Fixing WordPress
In reply to: How to list the current page’s children?Now does anyone know how to keep parent highlighted while navigating through children?
example:
About
– Disclaimer
– Contact
– StoryHaving the current sublevel highlighted while keeping “About” highlighted. I imagine it’s more than in the CSS and might involve is_page() ?
Any ideas appreciated.
Thanks!
JoeForum: Fixing WordPress
In reply to: How to list the current page’s children?Part of that got cut-off…here it is again
<!– Top level navigation, Parent –>
<div id=”navcontainer”>
<ul id=”navlist”>
<!– lists the pages from mysql database –>
<li id=”active”><?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?><!– The subnavigation, children –>
<div id=”navcontainer”>
<ul id=”navlist”>
<li id=”active”> <?php
$thispage = $wp_query->post;
if($thispage->post_parent!=0)
{
wp_list_pages(“title_li=&child_of=”.$thispage->post_parent);
}
else
{
wp_list_pages(“title_li=&child_of=”.$thispage->ID);
}
?></div>
Forum: Fixing WordPress
In reply to: How to list the current page’s children?wow, i just spent hours trying to do what marcus’s code pulls off. This works like a charm! thanks so much
mine looks like this
<!– parent navigation –>
<div id=”navcontainer”>
<ul id=”navlist”>
<!– lists the pages from mysql database –>
<li id=”active”><?php wp_list_pages(‘sort_column=menu_order&depth=1&title_li=’); ?><!– the subnavigation, children –>
<div id=”navcontainer”>
<ul id=”navlist”>
<li id=”active”> <?php
$thispage = $wp_query->post;
if($thispage->post_parent!=0)
{
wp_list_pages(“title_li=&child_of=”.$thispage->post_parent);
}
else
{
wp_list_pages(“title_li=&child_of=”.$thispage->ID);
}?></div>