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 suppress Header from appearing on certain categories?


  #1  
Old Jun 3, 2010, 05:02 PM
blogmom
 
24 posts · Jun 2009
Hi all,

On my site, I have a page that lists posts from a certain category. My hyperlinks to these posts use "rel=shadowbox" to display the Post in a popup Shadowbox JS - but it looks weird to have the Header,Kicker,Category Bar and Page Bar appearing in these popups, so I'm trying to suppress it. In other words, I'm basically trying to suppress Header,Kicker, and bars for certain categories. To do this, I think I need to add logic to the code seen in Center Column -> Style & edit Center Column -> "The Loop", something like "if Category=XX or YY, then do not process <?php bfa_post_kicker, <?php bfa_post_headline, etc. I have tried hacking around with <?php IF statements based on other posts in this support forum, but I can't get it working.

Anyone interested in helping me figure this out?

I use Atahualpa 3.4.9

Thanks all...
  #2  
Old Jun 3, 2010, 09:45 PM
blogmom
 
24 posts · Jun 2009
I figured it out!!! It's not the Center area that I need to edit after all. It's header.php.

Where it says:
Code:
<!-- Header -->
<td id="header" colspan="<?php echo $cols; ?>">

          <?php bfa_header_config($bfa_ata['configure_header']); ?>
I changed to
Code:
<!-- Header -->
<td id="header" colspan="<?php echo $cols; ?>">
<?php if (!in_category('3') ) {
          bfa_header_config($bfa_ata['configure_header']); } ?>
So easy!! Now I'll play with creating a "thin header", one without an image and bars, and use a php Insert command in the If statement to include it for only these categories.

So cool!

(an Admin can mark this post as Solved...I don't see a way to do it myself...)

Last edited by blogmom; Jun 3, 2010 at 09:47 PM. Reason: grammar
  #3  
Old Jun 4, 2010, 05:07 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You should be able to do this in The LOOP and there fore not have to remember to do it the next time you upgrade.

To mark a thread solved, use the 'Thread Tools' tab near the top of the page
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Jun 4, 2010, 08:43 AM
blogmom
 
24 posts · Jun 2009
Juggledad: can you give some advice about doing this in the Loop? I did try that first, but couldn't find a way. It's really is preferable considering the upgrade issues you mention.
  #5  
Old Jun 4, 2010, 09:20 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
to keep part of a post from showing when it is in category 3,
a - go to ATO->Style & edit CENTER COLUMN->The LOOP
b - find the part you don't want, like
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
c - change the leading '<?php ' to '<?php if ((!in_category('3') {'
d - change the ending from '?>' to ' } ?>'

so that
HTML Code:
        <?php bfa_post_footer('<div class="post-footer">','</div>'); ?>
becomes
HTML Code:
        <?php if ((!in_category('3') { bfa_post_footer('<div class="post-footer">','</div>'); } ?>
so to get rid of the byline you change
HTML Code:
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
to
HTML Code:
<?php if ((!in_category('3') { bfa_post_byline('<div class="post-byline">','</div>'); } ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Jun 4, 2010, 10:52 AM
blogmom
 
24 posts · Jun 2009
in the Loop area I was only able to avoid these settings:

Code:
<?php bfa_post_kicker('<div class="post-kicker">','</div>'); ?>
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
but the site's actual header remained. It wasn't until I edited header.php that I could remove the actual page header. Unless there is a trick to doing this in the Loop area?
  #7  
Old Jun 4, 2010, 12:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Do you mean the page header, ie logo menu header image?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Jun 4, 2010, 12:13 PM
blogmom
 
24 posts · Jun 2009
Quote:
Originally Posted by juggledad
Do you mean the page header, ie logo menu header image?
Yep, the site logo, page header, and page and category bars above and below it. Those are what I'm able to remove using the code I posted previously with the IF logic in header.php.
  #9  
Old Jun 4, 2010, 12:31 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ok, I guess I was a little confused with the description.

If you want to prevent the header area from displaying on a certian PAGE you can use a CSS Insert
HTML Code:
body.page-id-xxxx #header {display:none;}
where the xxxx is the page ID of your page.

For a category page you could use
HTML Code:
body.category-xxxx #header {display:none;}
is the name of the category
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Jun 7, 2010, 12:47 PM
blogmom
 
24 posts · Jun 2009
Thanks again Juggledad. I experimented with that too, but can't get it to eliminate the full page header as I can do by adding the IF logic to header.php. Maybe my solution is not the elegant approach, but it works for me.

Really nice of you to reply and help out, I do appreciate it!!

I'll mark this topic as Solved.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you suppress date on sticky post? Andante Atahualpa 3 Wordpress theme 6 Mar 21, 2010 05:39 AM
How do you suppress/hide title tags in widgets? Wyro Sidebars & Widgets 2 Feb 28, 2010 05:05 PM
Header Image Opacity Panels Not Appearing in IE7 Hyperbole Header configuration & styling 0 Feb 23, 2010 09:31 PM
Header Image Uploaded, Not Appearing Pushpin Header configuration & styling 2 Jan 2, 2010 06:05 AM
Content appearing over header JeffreyG61 Web Hosting for WordPress 1 Jun 24, 2009 08:32 AM


All times are GMT -6. The time now is 03:52 PM.


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