Ryan Fitzer
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Split blogroll/links in two?No. You’ll have to plan ahead what link sections your blog will have and then have two different sidebar.php files. For example your left sidebar could be named “sidebar-left.php” and could include just the “Friends” links. The right sidebar could be named “sidebar-right.php” and include whatever other link sections you like to have (recent posts, pages, etc…). This way your left sidebar could be very long without pushing down the other link sections you want to have. You include each sidebar like so:
<?php include (TEMPLATEPATH . '/sidebar-left.php'); ?>
<?php include (TEMPLATEPATH . '/sidebar-right.php'); ?>Forum: Themes and Templates
In reply to: Style Pages differently than subpages in wp_list_pages()For verticle nav (you are using a vert one right?), you style them like so (without child selectors). Make sure you wrap the pages template tag with
<div>and<ul>like so:<div id="nav">
<ul>
<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
</ul>
</div>Then the CSS would go like so:
Parent page styling:
#nav ul .page_item a {
color:blue;
}Sub page styling:
#nav ul li ul .page_item a {
color:red;
font-weight:bold
}This has been tested. Hope this helps.
Forum: Themes and Templates
In reply to: Split blogroll/links in two?Here is a page from the codex explaining how to list individual link sections.
http://codex.wordpress.org/Template_Tags/get_links
You supply the link id to each one to specify which links to show.
Forum: Themes and Templates
In reply to: missing rightcolumn.phpHave you looked under Presentation > Theme Editor yet?
Forum: Themes and Templates
In reply to: Split blogroll/links in two?So are you trying to make a three column layout?
Forum: Themes and Templates
In reply to: Style Pages differently than subpages in wp_list_pages()You would need to separate out the main nav from the subnav.
I use this for the main nav in header.php:
<!-- Begin Main Navigation -->
<div id="nav"><ul>
<li class="<?php if (is_home()) { ?>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='); ?>
</ul></div>
<!-- End Main Navigation -->And then I use this on page.php:
<?php if(wp_list_pages("child_of=".$post->ID."&echo=0")) { ?>
<!-- Begin Subnav -->
<div id="subnav">
<ul>
<?php wp_list_pages("title_li=&child_of=".$post->ID."&sort_column=menu_order&show_date=modified&date_format=$date_format");?>
</ul>
<hr class="hide" />
</div>
<!-- End Subnav -->
<?php } ?>This will put a subnav on any page that has child pages. If there aren’t any it will not show up.
Forum: Installing WordPress
In reply to: How do I…Not sure you are doing what I was talking about. A few questions:
What is the name of the folder that you have installed wordpress in?
How many folders deep is it on your server?
And what folder did you grab the index.php from that you altered with the above code?
I’m most likely going to need a link to the site as well to help with anymore troubleshooting.
Forum: Fixing WordPress
In reply to: Slideshow ProGreat, good to know that it wasn’t the absolute path issue (I’m still confused why though) because that is a great slide show app.
Forum: Installing WordPress
In reply to: How do I…You can refer to your profile whenever you want to see if there are updates to any of the posts you are active in:
http://wordpress.org/support/profile/94135
I gave an answer there that might be what your looking for.
Forum: Fixing WordPress
In reply to: How do I know if I’m displaying a page?By the way, looking at your site again I noticed that your links page is directed to a page outside of the wp root(“cms” in your case). Not really sure about all the modifications you’ve made to be able to help much more. Good luck.
Forum: Plugins
In reply to: Creating a nav with sub nav drop-downsForum: Fixing WordPress
In reply to: How do I know if I’m displaying a page?Go to your wp admin and navigate to the page you named “links”. In the sidebar, click on “Page Template” and specify “links” as the template. It seems as if all the other pages are working correctly, right?.
If “links” isn’t an option than the file (links.php) is either not in your theme’s folder or it isn’t formatted correctly for WP to recognise it as a template file.
Forum: Installing WordPress
In reply to: what’s my plugin directoryThe folder in wp-content named plugins.
Forum: Fixing WordPress
In reply to: Category name then Amount (#)It’s an option that you would need to pass to
wp_list_cats.Here’s how:
Forum: Fixing WordPress
In reply to: Multiple Blog Pages?Remember, it’s not CSS (this is what dictates the style of your site), it’s PHP (worpress specific in this case). This is the scripting language that makes all the magic happen.