Steph - You cannot use just <class="WHATEVER">. You are doing so in several places. You CAN have <a class="WHATEVER">, <div class="WHATEVER">, <span class="WHATEVER"> and a few more, but the point that you cannot have a tag of just <class="..."> without a name or "token". They are further screwed up by the fact that a nameless tag appears to open, but is never closed.
That being said, your problem is easily fixed.
Element by element:
Code: Select all
<p class="serendipity_date">{$CONST.STICKY_POSTINGS}</p>
I do not think this works well as a paragraph, especially not in the context in which you are using it. If you want to test it out, simply make one of your entries "sticky" and you will find out what I mean.
I think a span works better, ie:
Code: Select all
<span class="serendipity_date">{$CONST.STICKY_POSTINGS}</span>
Next:
Code: Select all
<class="serendipity_date">[ {$dategroup.date|@formatTime:DATE_FORMAT_ENTRY}<class="entry_time"> @ {$entry.timestamp|@formatTime:'%H:%M'} ]
So here is our first (and second) example of a tag(s) without a name or token. It also SUGGESTS someone was trying to accomodate 2 different classes, one for the date, another for the time. It is unlikely, however, anyone would ever want these styled differently. My choice would be to use a span with a single class for the entire thing:
Code: Select all
<span class="serendipity_date">[ {$dategroup.date|@formatTime:DATE_FORMAT_ENTRY} @ {$entry.timestamp|@formatTime:'%H:%M'} ]</span>
Next....
Code: Select all
{$CONST.POSTED_BY}
<a href="{$entry.link_author}" style="text-decoration: none"><font color="#7D9412"><b>{$entry.author}</b></font></a>
This one has no tag, and you are trying to style it in-line. Using our previous span examples, this one becomes the following, styling then relocated to style.css:
Code: Select all
<span="WHATEVERCLASSYOUWANT">{$CONST.POSTED_BY}
<a href="{$entry.link_author}"> {$entry.author}</a></span>
Finally:
Code: Select all
{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
Can also be wrapped in a span tag:
Code: Select all
<span class="WHATEVERYOUWANT">{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach} </span>
Most of the time, you see all these little bits of meta data styled exactly the same way. If that were the case, and there were no other spans falling under <div id="serendipity_Entry_Date">, you could omit the span classes (ie, just use <span> without a class="..) and use something like this in your style css:
Code: Select all
#serendipity_EntryDate span{
color: whatever;
text-decoration: whatever;
etc... }
Likewise, you can use:
Code: Select all
#serendipity_Entry_Date span a,
#serendipity_Entry_Date span a:link,
#serendipity_Entry_Date span a:visited {
color: whatever;
}
AND
Code: Select all
#serendipity_Entry_Date span a:hover {
color: whatever;
},
I wrote this very quickly, and have not reviewed it extensively. Hopefully, it is either correct, you will figure it out for yourself, or someone else will come along and add further explanation/correction if necessary.