Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


 
Prev Previous Post   Next Post Next
  #1  
Old May 14, 2012, 07:13 AM
arthurmild
 
50 posts · Aug 2010
Cape Town
[SOLVED] How to Hide Headlines on PAGES but not on POSTS

OK

I need to

hide post headlines in PAGES

but

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


I achieved this by using
Code:
display:none
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

Code:
<?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 } ?>
 

Bookmarks

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 06:46 AM.


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