Incorporate into a Theme

Permalink
I'm developing a theme, and would like to incorporated the Rounded Corners add-on

Rather than going through each page and page-type as has been suggested in other posts, can I add this block and its configuration (CSS selectors and styles) to the header.php file?

My proposed theme is also based upon the C5 Default theme, which has very little colour in it, so would I have to background-colour each div element for this add-on to work, or can I specify a colours for the rounded border?

Tags:

View Replies: View Best Answer
jb1 replied on at Permalink Best Answer Reply
jb1
Hi, the way the settings are saved in this block doesn't allow it to be hard coded into a template in the traditional sense (c5's recommended way). However you can certainly hard code references to the js and CSS file in your header along with the css code specific code. The easiest way is just to add the block normally, save the changes and view the source code for the page. This will show you how the final code looks like. Just copy those bits into your header.php file in your theme and remove that temporary block from your page so there's no double ups.

Hope this helps.

JB

- Sent from my iPhone
fowlesp replied on at Permalink Reply
Worked!

Because the add-on genrates CSS, its very to see how to incorporate it into the header, for a consistent look across my site

Thanks
jb1 replied on at Permalink Reply
jb1
Cool, glad you got it. Thanks for the positive review. :-)