Kirk Wight
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Previous Post button not showing upYour problem is with the URL to the button image, called “prev.png”. Most likely you need to add get_stylesheet_directory_uri() to your image URL in navigation.php. If the button is in a folder called images inside the theme folder, you would need:
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/prev.png">Forum: Themes and Templates
In reply to: Double Image ProblemI think you inserted a gallery (a gallery of that one image) rather than just the image, from what I can tell…
Forum: Themes and Templates
In reply to: Hide title on homepageThat conditional PHP code looks a little wacky to me… easier to insert the_title only if we are not on the home page:
<?php if ( ! is_front_page() ) { the_title(); } ?>Forum: Themes and Templates
In reply to: How do I hide images used in the loop from the single page?You can add this to your stylesheet to hide the first content image on single.php:
.single .post-body img:first-child { display: none; }Check in the browsers you care about to make sure :first-child is supported; more info here:
http://www.w3schools.com/cssref/sel_firstchild.aspForum: Themes and Templates
In reply to: Missing image permalink thing shows in Chrome?It looks like it’s maybe intended for a featured image, but isn’t coded to skip if the image is not set.
The empty img tag is there in all the browsers, you just can’t see it in IE9 and FF.
If you don’t care what it is, you could just add
.post-image { display: none; }to your style sheet to get rid of it, or delete the code that’s trying to insert it in the first place (maybe in index.php or loop.php?)
Forum: Themes and Templates
In reply to: How to use single.php file with custom post typesHave you done the permalink thing? When a new custom post type has been defined, you need to go to Settings > Permalinks and just click Save Changes (you don’t even have to change anything). I’m not sure what it does, but its necessary to view the post.
I often forget to do this. As a matter of fact, I forgot to do it while testing this for you 🙂
I can copy-paste your above code and it works for me (with single-zombies.php).
Forum: Themes and Templates
In reply to: How to add different css style per post in WordPress timeline+1 for alchemyth’s answer. You could even use the post_class() parameter in my example above, see “Add Classes By Filters” under Examples here: http://codex.wordpress.org/Function_Reference/post_class
Forum: Themes and Templates
In reply to: How to use single.php file with custom post typesWhen you say you can’t see your content, you mean in the list of posts?
The default loop will not return custom post types; you’ll need to adjust the loop query to add them. This link should get you started.
Forum: Themes and Templates
In reply to: Twenty Ten ThemeYou can replace the current #content with this in your style.css:
#content { border-right: 1px solid #EEEEEE; margin: 0 240px 0 20px; padding-right: 40px; }Forum: Themes and Templates
In reply to: How to display a translated text (two languages side-by-side)My first thought is to use WPML and select a third language to handle the combo version.
You can even use the built-in language selector to switch between the different versions.
WPML is no longer free, but it’s the best $70 I’ve ever spent for translation management in WP.
Forum: Themes and Templates
In reply to: How to add different css style per post in WordPress timelineAssuming your theme uses the_ID() when outputting the posts:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>you can target individual posts with CSS:
#post-1 { background: green; } #post-2 { background: blue; }Forum: Themes and Templates
In reply to: Same article, two different layouts depending on categoryI’m assuming the issue is with the single (full) view of the article?
You can handle this with conditionals in single.php:
if ( in_category( 'casestudy' )) { // Case Study layout } else { // regular layout }It won’t matter what your permalinks are in this case.
Under Gallery > Options > Images, just uncheck “Cache Single Pictures” and then clear the cache folder.
Not sure what that’s all about, but as long as this setting isn’t important to you, it will avoid having to change plugin files after an update.Forum: Plugins
In reply to: [Meteor Slides] [Plugin: Meteor Slides] Intermittent slide link problemAh, of course. Silly rabbit.
I recently created a function that filters post_thumbnail_html of featured images – which would affect Meteor slides, as they are featured images themselves. It was also conditional, which accounted for my intermittent problem.
Thanks again for your excellent plugin, and support of it!
Forum: Plugins
In reply to: [Meteor Slides] [Plugin: Meteor Slides] Intermittent slide link problemYou’re right, it’s something with my child theme.
Its a WPML bilingual site using conditionals to determine whether the ‘featured-en’ or ‘featured-fr’ slideshow should be displayed.
The problem may have also started sometime around changing the permalink structure also… lots of variables. But I have it working with a stripped-down version of my functions file, so the answer’s in there somewhere.
Does any of this give you a hint as to what it could be? I’d be happy to email you a link if you’re curious to see it in action.
Thanks for your help!