govfresh / govpress

The WordPress theme for government
https://wordpress.org/themes/govpress/
GNU General Public License v2.0
135 stars 50 forks source link

Homepage content style #32

Closed lukefretwell closed 10 years ago

lukefretwell commented 10 years ago

the_content section on homepage doesn't retain HTML styling.

See: http://govpress.co

Examples:

What they say

"Top of the line municipal websites can cost small- to medium-sized cities as much as $20,000 or more. It's a shocking figure at a time when our communities' budgets are still struggling. We still need to get information out in a simple, effective manner to the public in the most transparent way possible. The GovFresh WP theme allows us to provide our community with a professional municipal website that is easy to navigate on multiple platforms, including mobile devices and tablets. Open source technologies like WordPress are the way of the future for governments of all sizes."
devinsays commented 10 years ago

I updated this to use the page template part so all the proper markup is now used: <?php get_template_part( 'content', 'page' ); ?>

This also means that the title now comes through- which I think is good.

If users want to hide the title for that template they could use:

.page-template-templateshome-page-php .entry-title {
     display:none;
}

Or, if the template is being used on the home page:

.home .entry-title {
     display:none;
}

Does this work for you @lukefretwell?

lukefretwell commented 10 years ago

Yep.

On Monday, February 24, 2014, Devin Price wrote:

I updated this to use the page template part so all the proper markup is now used: <?php get_template_part( 'content', 'page' ); ?>

This also means that the title now comes through- which I think is good.

If users want to hide the title on the home page they could use:

.page-template-templateshome-page-php .entry-title { display:none;}

Or, if the template is being used on the home page:

.home .entry-title { display:none;}

Does this work for you @lukefretwell https://github.com/lukefretwell?

Reply to this email directly or view it on GitHubhttps://github.com/govfresh/govpress/issues/32#issuecomment-35970459 .

Luke Fretwell 415.722.8678 luke@lukefretwell.com http://lukefretwell.com