How to get an error message if a form is empty (plugin: Post for site) [closed]

You’ve already got a check for $_POST == empty. **if (!empty($_POST)){ $pfs = pfs_submit($_POST,$_FILES); echo json_encode($pfs); //echo “<pre style=\”border:1px solid #ccc;margin-top:5px;\”>”.print_r($pfs, true).”\n”; wp_redirect(“http://domda.se/tack/”); exit; } else { /* TODO: translate following */ _e(‘Den här sidan hade du inte behövt se, nÃ¥got är fel.’,’pfs_domain’); echo “<a href=””.get_bloginfo(“url’).”‘>” . __(‘Go home?’,’pfs_domain’) . “</a>”; }** Add an error … Read more

Sidebar Slideshow widget with text [closed]

I don’t think this StackExchange is meant to recommend plugins. However, I happen to have built this for a client before. It uses jQuery’s “jCaroussel” plugin, and you can see it in action on Oelers Makelaardij. Scoop up the minified version, it contains all plugins like Autoscrolling, Controls, etc. CSS Most of the CSS is … Read more

How to change prices per number ordered in WooCommerce [closed]

Not a standard option, there’s a plugin for that: Dynamic Pricing Alternatively, you can hide the quantity buttons: div.quantity { display: none !important; } or disable it entirely: function woocommerce_quantity_input() {} though both these alternative solutions do this for your entire shop.

How to Add a Website Background Image to One Page?

Use Conditional Tags: http://codex.wordpress.org/Conditional_Tags Or a custom template for homepage: http://codex.wordpress.org/Stepping_Into_Templates Then it’s a matter of applying a style / class when, for example, is_front_page() (or sometimes) is_home() (for conditionals), or on your custom template. It’s mostly a matter of CSS then. Update/Alternative: Use Chrome to learn body class. Apply style accordingly: body.home { background:url(images/home_background.png) … Read more