Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Post-Kicker, -Byline & -Footer (http://forum.bytesforall.com/forumdisplay.php?f=17)
-   -   Remove Byline from a single post (http://forum.bytesforall.com/showthread.php?t=14594)

vCopia Jun 11, 2011 01:48 PM

Remove Byline from a single post
 
I read this related post: http://forum.bytesforall.com/showthr...ndividual+post, used the code provide therein, inserted it into the "Center Column Style" section of my ATO but nothing happened. See code below.

The post ID is #1.
I'm using ATO v. 3.6.7

Suggestions?

PHP Code:

<?php if ( !is_single('1') ) { bfa_post_byline('<div class="post-byline">','</div>');} ?>


juggledad Jun 11, 2011 08:24 PM

Center colum style is for CSS not code

You need to edit index.php

vCopia Jun 12, 2011 09:40 AM

OK. I think I've got it. So for ATO v. 3.6.7 I have to edit the index.php directly. I also have an web site using v 3.4.9, and have a bunch of code inserted within the front-end ATO. Set up a new, quickie site this weekend with the new version and didn't note all the changes.

Thanks.
vCopia

aQuickStudy Jun 12, 2011 10:02 AM

Could you do it by setting it to "display:none" using CSS inserts? (And using the post number.) That would keep you from having to edit theme files.

vCopia Jun 12, 2011 10:09 AM

Nope. Spoke too soon. I ain't "got it" yet...

Tried inserting the code, as written above, in the index.php. First, I inserted it into the loop section, and when that didn't work I inserted it above the loop section. Both give me fatal errors. So... I'm guessing there is an error in the code, itself, as I've written it, that I'm not seeing. Thoughts?

vCopia

vCopia Jun 12, 2011 10:11 AM

Quote:

Originally Posted by aQuickStudy (Post 67803)
Could you do it by setting it to "display:none" using CSS inserts? (And using the post number.) That would keep you from having to edit theme files.

Good point. Not sure. Let's see what Juggledad says...

juggledad Jun 12, 2011 10:53 AM

sure you could do it with CSS, just have to have the right selector.
HTML Code:

div.post-1 .post-byline {display:none;}

vCopia Jun 12, 2011 11:43 AM

It worked. Gotta love a wise woman backed by a genius geek. Thank you both.

vCopia.


All times are GMT -6. The time now is 04:53 PM.

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