david.bailey
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Make a child theme after changes to parent have been madeI can’t help you there. At some point you’ll need to know what changes you made so you can add those changes to your child theme. Try adding the files you remember, and if later on you find something that doesn’t reflect some of the changes you made, you can go back and add the file with the changes.
Forum: Themes and Templates
In reply to: Make a child theme after changes to parent have been madeWhat I would do is make a child theme, add to it the files that have been changed, and replace your TwentyEleven with the one in the WordPress repository. Then you should be fine.
Use this code:
<?php /* Start the Loop */ ?> <?php $count = 0; ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'loop', get_post_format() ); ?> <?php global $wp_query; $num_posts = $wp_query->post_count; if ( ( ( $num_posts <= 3 ) && ( $count == $num_posts ) ) || ( $count == 4 ) ) echo '<div class="tagcloud_manual"></div>'; $count++ endwhile; ?>
Tell me how it works out
EDIT: Someone beat me to it – well now you have two code choices!
Forum: Themes and Templates
In reply to: Change Link Color in ThemeYou can try checking if the theme has options. Most of the time, you might end up having to edit the style.css. The best way to do that is using browser with Firebug or Google Chrome’s developer tools.
Forum: Themes and Templates
In reply to: Caption CSS – Move to left edge.wp-caption-dd { width: 100%; margin: 0; }
Forum: Themes and Templates
In reply to: Wont let me install my themeWhat error is it returning?
Forum: Themes and Templates
In reply to: Posting On pagePut this in the loop:
<?php the_title('<h3>', '</h3>'); ?>
<?php the_author(); ?>
<?php the_date( $format, $before, $after, $echo ); ?>
Forum: Themes and Templates
In reply to: Adding New PostMissing context information for text language translation. If you’re just learning WordPress then I would say just get rid of it. ie ‘label’ => ‘Recipes’. It’s not necessary to get the post type registered.
Forum: Developing with WordPress
In reply to: Redirect Feeds to Feedbuner Without Any PluginDrop this into your functions.php file:
// Redirect RSS to FeedBurner // function diww_rss_feed_redirect() { global $feed; $new_feed = 'https://feeds.feedburner.com/wanderingbrit'; if (!is_feed()) { return; } if (preg_match('/feedburner/i', $_SERVER['HTTP_USER_AGENT'])){ return; } if ($feed != 'comments-rss2') { if (function_exists('status_header')) status_header( 302 ); header("Location:" . $new_feed); header("HTTP/1.1 302 Temporary Redirect"); exit(); } } add_action('template_redirect', 'diww_rss_feed_redirect');
It looks like those images are supposed to be post featured images. In the post or page, look for a box that says Featured Image. You should be able to upload and add the image there and a thumbnail of that image should appear on the home page. Let me know if that works.
Forum: Themes and Templates
In reply to: Child theme install problemsThe syntax and directory name looks fine. Try reinstalling the Twenty Eleven theme, or look at the theme directory and see if there are any issues there.
Forum: Themes and Templates
In reply to: Template works in Chrome but not IE :(It looks fine in IE8, but some things don’t seem to show up in IE7 at all. I don’t typically use IE7 for development so I don’t know what style is causing it to break, but to start I would just recommend using a CSS reset.
Either way, the market share for IE7 isn’t really significant enough to sweat it too much at this point, but it’s worth looking into.
Forum: Themes and Templates
In reply to: Mantra Settings playing upI don’t know why it becomes narrow when you change a setting, but you might not want the following block of code anywhere in your style.css file:
#wrapper, #access, #colophon, #branding, #main { width: 50px; }
This changes the width of several broad divs to 50px –
Forum: Themes and Templates
In reply to: Editing widget styles in "Fresh Editorial" themeThe template directory for your theme would look something like wp-content/themes/theme-name – and you’d want to edit the style.css.
Forum: Themes and Templates
In reply to: Adding second sidebar to twentytenWhere are you registering the sidebar?