I created a theme from scratch and I didnt make a lot of changes to the
theme template files which listed as below:
A lot of styling that I made with
HTML/CSS was missed up when I start creating contents and didn't appear as I expected.
Below code is used for getting the whole content, but how am I able to break it into artic title, article meta, article content body?
So I would like to know how am I able to edit the
PHP files and giving styles to each element? Also some of elements that are specific for home page and category pages are shown into the article pages, so how shall I fix that too?
here is title's code from
<?php print render($title_prefix); ?> <?php if ($title): ?><h1 class="pageTitle"><?php print $title; ?></h1><?php endif; ?> <?php print render($title_suffix); ?>
and that's the title code from
<?php print render($title_prefix); ?> <?php if (!$page): ?> <h3 class="postTitle"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h3> <?php endif; ?> <?php print render($title_suffix); ?>
But still all articles getting its title styling from
page.tpl.php and it is staying outisde of the div that I specified for the
node--article.tpl.php file. So how to fix that?