Jeni K Posted 18 hours ago Share Posted 18 hours ago (edited) Hello all - I am updating an existing site - I am not new to html/php, but I am to how ProcessWire works. I have 2 things that I am struggling with one is really basic, the other a bit more indepth. 1 - updating the CSS for a site. I cannot find anywhere, in the admin area that lets me define colors, fonts, etc in the css. Is this done manually outside of the admin portal? Editing the actual css file (which I am fine with, but would rather not have to). 2 - Forms (using Form Builder) I have created 2 forms, but I want to control the layout of those forms. Which I am totally comfortable editing the html to do that. However, where the struggle begins is now what? I can get the form to display on the page (template), but if/when 'submit' is hit, nothing happens. A blank page just comes to that area on the page, no error message, no entries are being saved, nothing. I tried to understand the header that is in the file that is created when you do "Custom Embed" and it renders the basic form. I know these are two different level questions, but I am stuck on both of them and I am sure there is a simple answer to them both. Thanks in advance for any help on these. Jeni Edited 18 hours ago by Jeni K Link to comment Share on other sites More sharing options...
TomPich Posted 3 hours ago Share Posted 3 hours ago Hi, Updating CSS – Processwire let you handle CSS the way you want directly in file(s). So yes, you will have to manually edit the CSS. I cannot help you with Form Builder specifically, as I don’t use it. But the general behaviour of PW with form is the same as default behaviour: if not specified otherwise, a form will send the form data with GET to the current URL when you press submit. So you have to check what method is used on your form (GET or POST) and to which URL the data are sent. With the elements you provided, I would say the data are sent with JS by fetch. So try to locate the script that handle this to see what happen when the form is submitted. When you know where your data are sent, there is two possibilities: • either it’s a existing page, so get the template php file of the corresponding page, and you see what happens with the data. • or (more probably in your situation, as it seems to be a JS submit), it’s an endpoint that has been created via a hook (check your init.php file in the site folder) to handle the data. Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now