Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 14, 2012, 08:13 AM
arthurmild
 
50 posts · Aug 2010
Cape Town
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 } ?>
  #2  
Old May 14, 2012, 08:50 AM
arthurmild
 
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.

SOLVED

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 01: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 02:11 AM
Not updated headlines posts pkolt Installing & running WordPress 0 Mar 12, 2010 02:38 PM
[SOLVED] Help Removing Titles or Headlines from Pages rbcs Header configuration & styling 2 Aug 30, 2009 01: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 01:13 PM


All times are GMT -6. The time now is 03:50 AM.


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