Why is the `if else` not working?

Assuming you’re using the function is_category_or_sub() as given on http://valendesigns.com/wordpress/is-category-or-subcategory-wp-function/ That function takes category id as the argument, not the slug. The string “gamenews” here when type-casted to an integer becomes 0 which is an ancestor for every other category. Can you try changing the function code to this- // If is category or subcategory … Read more

Does WP, php, or a current framework (woofoo / genesis, etc). Offer a way to schedule text / bg color changes?

You could just create different style sheets for each color profile, and load those depending on which month it is. Here’s a basic example showing how you could load a halloween.css file for october, and an xmas.css file for december. The code below would go in your themes functions.php file: add_action(‘wp_enqueue_scripts’, ‘seasonalCSS’); function seasonalCSS() { … Read more

Get video from the post on homepage

Couple of assumptions before getting to solution. First, you have all embedded codes as iframe (almost all video sites export as iframe now) not as shortcode or object tag. Secondly, you want the video box not the video url which will be offcourse different for every video website. Put following code in functions.php function the_post_video($post_id=NULL) … Read more

disable default widgets in Responsive theme

You have to change the sidebar.php. In there, the default Sidebar main-sidebar is called. If no Widgets are registered in this Sidebar, the fallback function shows a monthly Archive. You have got two possibilities: Register a Widget for the Main Sidebar Remove the Fallback Function from sidebar.php. In this case, it would look like this: … Read more

WP e-Commerce Gold Cart with Plugin Built Into Theme

Typical Plugin Structure Generally speaking WordPress plugins are located at /wp-content/plugins/ they are not typically installed within the /wp-content/themes/… directory tree. If your theme is installing the plugin (wp e-commerce) under it’s own directory then you’ll need to work with your theme provider to work out how to update/upgrade. For a typical install of WP … Read more