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

Cherry Framework theme, JQuery is using HTTP not HTTPS

If the script is enqueued using wp_enqueue_script (as it “should” be) then you can modify the tag directly with a find and replace match to fix this using the script_loader_tag filter: add_filter(‘script_loader_tag’, ‘custom_https_fix’, 10, 2); function custom_https_fix($tag, $handle) { $match=”jquery.script.js”; // replace with actual script filename if (strstr($tag, $match)) {$tag = str_replace(‘http://’, ‘https://’, $tag);} return … Read more

How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()

WP doesn’t provide any helper methods for creating and processing forms in the front-end. To process your front-end form simply check for $_POST-ed data. I suggest you do this from within an action, and only if the widget is active. In your constructor – the someWidget() method (which you should rename to __construct, and call … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)