Styling submit button (search block)
Permalink
On the projects page I am developing (http://mattgreydesign.com/projects/) I have a search block on the left hand side. Is there any way I can style it like what I have done athttp://mattgreydesign.com/contact/... ?
I dont really want to mess around with concrete's core just in case i want to update it, how do i do this without messing around with it?
its pretty simple.
Grab the view.php file (what JimboJetset says), then go into your yoursiteroot/blocks/search/templates and put the updated view.php file there. (You can rename it).
That way you aint messing with the core and when an update comes no problems will occur!
Cheers,
Thomas
Grab the view.php file (what JimboJetset says), then go into your yoursiteroot/blocks/search/templates and put the updated view.php file there. (You can rename it).
That way you aint messing with the core and when an update comes no problems will occur!
Cheers,
Thomas
Got it, great thanks. Sorry, I thought you meant I had to mess with the core.
sorry bud this didn't seem to work for me ... does this still work in the upto date c5?
Goto yoursiteroot/concrete/blocks/search folder.
Within the search folder create a new sub-folder called 'templates'
Copy the view.php file from the search folder into the templates sub-folder.
Change the name of the new view.php file in the templates folder to something descriptive..(ie.. mytemplate.php)
Edit this new file to style the submit button... ie add custom css, surround it with an appropriate div or whatever... and save the changes.
Once all that is done you can goto and edit the page with the search block... click on the area containing the search block and click 'custom' template' and you should see your new template in a drop down box... select it then finish editing..