Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] How to Hide Headlines on PAGES but not on POSTS (http://forum.bytesforall.com/showthread.php?t=17551)

arthurmild May 14, 2012 07:13 AM

[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 } ?>


arthurmild May 14, 2012 07:50 AM

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


All times are GMT -6. The time now is 11:31 PM.

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