More robust semantic markup to allow for CSS styling

Hello,

Can you please improve your html in the display of the contents? The title and site name should be separated by at least a span tag or even headers and paragraph tags. The post content should be wrapped in a paragraph tag as well. There should also be post info displayed somewhere in there. Can we even drop in a read more link below all of that?

I attached a screenshot of what it is right now.

I think the code should be something like this. (genesis framework)

'<li class="post-1384 post type-post status-publish format-standard category-press-releases tag-transportation entry" itemscope="" itemtype="http://schema.org/CreativeWork">

<header class="entry-header"><h2 class="entry-title" itemprop="headline">post_title</h2>

<p class="entry-meta">
<time class="entry-time" itemprop="datePublished" datetime="2014-12-05T12:00:00+00:00">December 5, 2014</time>
<span class="entry-author" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span class="entry-author-name" itemprop="name">author_username</span>
</span>
<span class="entry-categories">Press Releases</span>
<span class="entry-tags">transportation</span> </p></header>

<div class="entry-content" itemprop="text"><p>post_content ...Read More</p></div>
`

  • Vaughan
    • Support/SLS MockingJay

    Hi Clayton,

    Hope you're well?

    I'll add this to the features list for the developer to consider in an update.

    For the time being though, you could edit the code directly. You should be able to find the relevant HTML in the following file;

    /wp-content/plugins/recent-global-posts-widget/widget-recent-global-posts.php

    look at function widget()

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.