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

Formatting WordPress Menus (without bullets, inline with text)

Assuming the menu has the structure <div id=”site-info”> Copyright (c) 2013 Acme Inc. All rights reserved. <ul class=”menu”> <li> Privacy Policy</li> <li>Terms and conditions</li> </ul> </div> You will need to add the following css” #site-info{ display: inline-block; line-height: 30px; /* adjust to aling everything up or remove */ } .menu{ list-style: none; /* to remove … Read more

Header location [closed]

HTML code: <h4 id=”yourId”><span><strong>100%</strong></span></h4> CSS: code #yourId { position: top: 10px; right: 10px; position: absolute; } If you need it to stay always there even if you’re scrolling then use this one #yourId { position: top: 10px; right: 10px; position: fixed; }

Name and password development/offline mode plugin

If I understand it correctly, you’re trying to restrict access to your site while you’re building it. So visitors not logged in see some sort of maintenance mode page, while logged in visitors can access the dashboard and see the front-end while they develop? I think your best route is to use a plug in. … Read more