Kirk Wight
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Debut] [Theme: Debut] Removing Page TitlesLet me know if this didn’t work for you. Marking as Resolved.
Forum: Themes and Templates
In reply to: Removing rel=next / rel=prev on next / previous linksIndeed, the magical way to safely modify core behaviour:
Forum: Themes and Templates
In reply to: Removing rel=next / rel=prev on next / previous linksfunction slug_remove_rel_prev( $format ) { return str_replace( ' rel="prev"', '', $format ); } add_filter( 'previous_post_link', 'slug_remove_rel_prev' );Duplicate and change accordingly for “next”. That’s two single quotes after “prev”, not a single double quote.
Still don’t understand why, but there ya go 🙂
Forum: Themes and Templates
In reply to: Removing rel=next / rel=prev on next / previous linksOdd.
But if you want to remove them, there are filters for previous_post_rel_link and next_post_rel_link; you could use a regex to yank them out (and not have to modify Core).
Forum: Themes and Templates
In reply to: Removing rel=next / rel=prev on next / previous linksNot sure why you would want to remove these. They are not visible to users, and they help search engines determine where links are in a series (more info here).
It looks like you’ve already removed them, as I don’t see them on the site now. Removing from link-template.php would be a bad idea, as edited core files will just be overwritten when you next update.
Forum: Themes and Templates
In reply to: [Debut] [Theme: Debut] Removing Page TitlesChild themes are described here:
http://codex.wordpress.org/Child_Themes
The major benefit is that when Debut gets updated (new features, security fixes etc), the updates won’t clobber your custom changes.
Create a basic child theme as described above, and copy content-page.php into it (this is the file you’re looking for, not page.php). Removing the line:
<h1 class="entry-title"><?php the_title(); ?></h1>will remove the title, and your changes won’t be overwritten when updating the theme.
That worked perfectly, thanks!
Yes, your ‘connected_query’ would be great; it would avoid two separate queries when all you want is a quick piece of data to set a variable.
Thanks again!
Forum: Plugins
In reply to: [MailChimp Widget] MailChimp Widget and WPMLThat would be great – they are very cooperative!
Forum: Everything else WordPress
In reply to: Core Dev Team Meetup Q&AI would also love to see WordPress include native translation management; something implemented in the same way as Multi-Site for those of us who need it.
Forum: Themes and Templates
In reply to: wp_nav_menu and first ?You can use wp_get_nav_menu_items to build the list, using a counter to add your special class to only the first item: http://codex.wordpress.org/Function_Reference/wp_get_nav_menu_items
Forum: Themes and Templates
In reply to: 2 themes in the same websiteYou can also use MultiSite, which is built-in to WP 3.0+. This allows you multiple blogs, each using their own theme and plugins, that share one WordPress install.
Forum: Themes and Templates
In reply to: Calling Part of a Wp Nav MenuI think the easiest way would be to create another menu with the elements you want in Appearance > Menus, and then call that specific menu with the Custom Menu widget in your sidebar.
You have two choices, you can make a child theme (preferred method, especially if making other changes) or edit the original theme’s files.
In either case, open the header file (header.php) and move the navigation block of code:
<div id="nav" role="navigation"> <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?> <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'pilcrow' ); ?>"><?php _e( 'Skip to content', 'pilcrow' ); ?></a></div> <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?> <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> </div><!-- #nav -->below the image code:
</div><!-- #pic -->Forum: Themes and Templates
In reply to: [Theme: Delicate] Making content area wider at single pages?Can you provide a link so that we can see what you’ve got so far?
Forum: Themes and Templates
In reply to: Help – cant echo titleCheck out
$post->post_titleorget_the_title(), depending on how you’re trying to do this.