Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to Hide Headlines on PAGES but not on POSTS

Old May 14, 2012, 07:13 AM
50 posts · Aug 2010
Cape Town

I need to

hide post headlines in PAGES


display post headlines in POSTS (single post and multi post)

I achieved this by using
in ATO settings but this applies to both types:

To discriminate between posts and pages I will need to apply this CSS to the HTML element that aplies only to headlines in Pages

I can see code (below) this in functions.php but can't quite work out how the final class and id of a POST versus a PAGE headline will appear

Can anyone help me? - Thanks

<?php /* Post Container starts here */

		if ( function_exists('post_class') ) { ?>

		<div <?php if ( is_page() ) { post_class('post'); } else { post_class(); } ?> id="post-<?php the_ID(); ?>">

		<?php } else { ?>

		<div class="<?php echo ( is_page() ? 'page ' : '' ) . 'post" id="post-'; the_ID(); ?>">

		<?php } ?>
Old May 14, 2012, 07:50 AM
50 posts · Aug 2010
Cape Town
Good news - No need to hack the code - which of course one should generally never do...

The answer is here.

Like the original poster I had never used that part of ATO.



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Keep post headlines, remove page headlines verymarie Center area post/pages 1 Mar 17, 2011 12:14 PM
[SOLVED] How do I get rid of page headlines in the body of pages, but not posts? jillin Atahualpa 3 Wordpress theme 2 Oct 22, 2010 01:11 AM
Not updated headlines posts pkolt Installing & running WordPress 0 Mar 12, 2010 01:38 PM
[SOLVED] Help Removing Titles or Headlines from Pages rbcs Header configuration & styling 2 Aug 30, 2009 12:22 PM
how do you hide the sidebar on "Not Found" pages/posts w/ incorrect ID in the URL? jonasgrumby Sidebars & Widgets 0 Aug 26, 2009 12:13 PM

All times are GMT -6. The time now is 10:41 AM.

Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.