Peter Boosten
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Single static page with comments templateHmmm, not quite sure I do understand:
A minimal WordPress theme only needs an index.php, but to show posts on its own, one uses single.php. To display pages, one uses page.php.
The latter would be the one to edit, but, if you want comment fields on only certain pages, one could create another template for such a page, say you want your ‘about’ page to be different from the other pages, you would also create an about.php template.
If you want several pages to look the same, you would probably be needing custom page templates.
The code to display the actual page contents, is described here, and is basically the same for each template.
Peter
Forum: Themes and Templates
In reply to: Single static page with comments templateI think it’s a good thing ๐
What problem are you facing?
Peter
Forum: Themes and Templates
In reply to: Where did my pages and buttons go?Seems to be working now…
Peter
Forum: Themes and Templates
In reply to: Where did my pages and buttons go?Oke, the first thing wrong are your permalinks:
http://monicacowlesphotography.com/2009/12/events/%postname&Change the ampersand to percent sign…
After changing that, we’ll continue.
Peter
Forum: Themes and Templates
In reply to: Creating a WordPress Theme1: yes, better to learn some css
2: php files != elements
Your page could be structured like this:
<body> <div id="page"> <div id="header"> header stuff goes here </div> <div id="content"> <div id="items"> <div class="post"> post stuff </div> <div class="post"> post stuff </div> </div> <!-- items --> <div id="sidebar"> sidebar stuff </div> <!-- sidebar --> </div> <!-- content --> <div id="footer"> footer stuff </div> </div> <!-- page --> </body>How the above maps to the different php files, is kinda defined in the programming standard, however you’re free to do it differently (in fact, you just need an index.php and style.css for a valid theme).
The above shows raw, unstyled content, and the layout, colors, font sizes, font type, and more will be defined in the stylesheet.
Hope this helps a bit. I think you’ll have some reading to do.
Peter
Forum: Themes and Templates
In reply to: Author.php listing only 10 postsHave a look at this article.
Peter
Forum: Themes and Templates
In reply to: Creating a WordPress Themethe CSS file drives the basic look of the background colors and the layout and the .php file drive the look of the elements that sit on top of the CSS
The other way around: you define blocks (elements), and position and style them with css. So you define your header in the template, and how it looks is styled in the stylesheet.
You could use the same template (xhtml) with different stylesheets and the look would be totally different.
Peter
Forum: Themes and Templates
In reply to: Creating a WordPress ThemeAm I correct that themes contain .php files for the WprdPress functionality and CSS for the style and layout?
Yes, the php files are called the templates. It’s actually the combination of the php and style.css that defines your layout.
If I know HTML and CSS will that allow me to create a theme or do I need to know .php too? Please help me understand the basic theory behind what it takes to create a theme?
Knowledge of xhtml and css is mandatory for creating a theme, the php code can be copied from the codex (for basic functionality – if you need some custom code, php knowledge might come in handy).
Peter
post your functions.php on pastebin, so we can have a look at it.
Peter
Forum: Themes and Templates
In reply to: Double ThemesDid you install some theme switching plugin, like Theme Switcher?
Peter
Forum: Themes and Templates
In reply to: Sidebar goes crazy on Archive PageAFAICT you have one closing div tag too many, just before
<div class="navigation clearfix"> <div class="alignleft"><?php next_posts_link('ยซ Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries ยป') ?></div> </div>forcing this part into the wrong div.
Peter
Forum: Themes and Templates
In reply to: Overlap footerHmmm
Fatal error: Call to undefined function: get_sidebarcustom() in /home/content/j/e/p/jepli/html/nageela/wp-content/themes/CampNegeela/custom.php on line 60Peter
Forum: Themes and Templates
In reply to: Adding A Wrapper With CSSI don’t know what you call a wrapper, but from what I’ve seen this image cannot be found:
http://afrostronomy.com/wp-content/themes/V2/images/kubrickbg-ltr.jpgPeter
Forum: Themes and Templates
In reply to: Where did my pages and buttons go?Looks like you resolved the issue, right?
Peter
Forum: Themes and Templates
In reply to: How Do I add Catergory description if template doesn’t show?By using the category_description() function.
Peter