cinnoi
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Category Posts] Moving thumbnail before the post title, not after.Okay, scratch that. I figured how to do that by just moving
<?php the_post_thumbnail( 'cat_post_thumb_size'.$this->id ); ?>before the post title string in the widget’s .php code.You can set the thumbnail size on the widget page, just select where you’ve placed the Category Posts widget and the last option is the thumbnail size.
Thank you so much. That worked perfectly.
Thanks for the offer, but I’d rather keep the discussion out in the open just in case other users are trying to do the same.
**edit** this post was in response to someone offering to find a solution by pm’ing them.
I basically want the “post_rating” to appear next to the Post Title whenever it appears on the website.
Forum: Fixing WordPress
In reply to: [Twenty 11] WSoD caused by this codeCool, I’ve no idea how to do that so I think I’ll stick to the extension (rather than using google for some dodgy codes).
Forum: Fixing WordPress
In reply to: [Twenty 11] WSoD caused by this codeI did it all in a child theme, so I was well behaved on that point. But thanks for the link. Now to delete the code. Cheers for the help!
Forum: Fixing WordPress
In reply to: [Twenty 11] WSoD caused by this codeWell, I want to add a sidebar onto regular posts in twenty eleven. I found this code on a random website I found on google (I know, but for a newbie they’re a godsend).
The author of the guide said to paste the above code into the child theme’s function.php and
<?php get_sidebar(); ?>just above<?php get_footer(); ?>in the page.php and single.php.So, I copied page.php and single.php from the parent theme and put the copies in my child theme folder. I then followed the above instructions. And now I have the WSoD.
In case it might help, here’s the website.
Forum: Fixing WordPress
In reply to: [Twenty 11] WSoD caused by this codeHa, yeah. I just have no idea what I’m doing and I’m new to coding, so I was just wondering if anyone on here sees something glaringly wrong in the code (which might be causing the WSoD).
Unfortunately, when it comes to reading code I’m about as useful as Stevie Wonder.
Forum: Fixing WordPress
In reply to: [Twenty 11] WSoD caused by this codeThis code is causing the white screen of death whenever I update a page or save any changes on my dashboard. If I remove the code, everything works perfectly. I’m wondering if there’s something wrong with the code itself.
Forum: Fixing WordPress
In reply to: [Twenty 11] WSoD caused by this codeWell, I certainly don’t get that.
Here’s the code:
<?php // ADD SIDEBAR add_filter('body_class', 'fix_body_class_for_sidebar', 20, 2); function fix_body_class_for_sidebar($wp_classes, $extra_classes) { if( is_single() || is_page() ){ if (in_array('singular',$wp_classes)){ foreach($wp_classes as $key => $value) { if ($value == 'singular') unset($wp_classes[$key]); } } } return array_merge($wp_classes, (array) $extra_classes); } ?>