Adding new div
-
I’ve been working on my first theme for WP with thematic. I don’t have much experience with PHP or CSS. But the code and design is clear enough to learn fast. I understand the functions and hooks. And modified alot of CSS to match my design.
But I keep struggling with implementing a new div. e.g. I want to add content to the footer. So i simply copy the PHP code for #siteinfo (in functions.php, add it to my childtheme’s function.php. And I add some content to that div.
Then I copy the CSS for #siteinfo and copy it to my childtheme’s stylesheet.Now comes the newbie question:
Why is my content in the new div not alligned with all the other content? I want it alligned and I presumed it should be, because I copied the code of a div where the content of the div is alligned with the other content on the site.function childtheme_sitelogo(){ ?> <div id="sitelogo"> The content: a logo for the site that links back to the homepage. <?php } add_action('thematic_footer','childtheme_sitelogo');
- The topic ‘Adding new div’ is closed to new replies.