tj000012
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Disable Visual Editor in The Text Widget@yerio – Thank you!! Your little functions script saved our site. The auto formatting of the new text widgets is indeed troublesome when it clashes with scripts and styles.
Forum: Themes and Templates
In reply to: Excluding category on Showcase template in twenty eleven themeFunction; customised. worked great. Cheers
This one is solved.Forum: Themes and Templates
In reply to: Excluding category on Showcase template in twenty eleven themeGotcha, thanks for clearing that up.
Thanks for the help. I might go back to the drawing board!
Not necessarily re not using a child theme. I’d just rename it and use it as a starting point and then customise/ customize to the max ??
And likewise if you use a child theme based off twentyeleven, it may change at some point if you update wordpress. Which is why I generally don’t bother with them. Pros and Cons. However they are valid and that’s for another discussion!
Cheers
Forum: Themes and Templates
In reply to: Excluding category on Showcase template in twenty eleven themeThank you for your quick response.
Very much appreciated.I would appreciate if there was a solution that didn’t involve any reference to dark magical powers. WordPress has such a function? That stuff is deadly dangerous! Yikes
Something like this, should work right?
function exclude_category($query) { if ( $query->is_page('blog') ) { $query->set('cat', '-22'); } return $query; } add_filter('pre_get_posts', 'exclude_category');
===
No Child theme this time round. However I agree I could have used a child theme, as is probably better practice.I have tried adding some similar functions, however it seems to be not working for some reason at all. Even targeting the right category id.