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] remove post headline on pages only?


  #1  
Old Sep 25, 2012, 07:55 PM
derekwbeck
 
151 posts · Nov 2010
Short of a child theme, is there a way to kill the <div class="post-headline"></div> on pages (but not posts/singles)? I don't want any title on pages.

Thanks!

Using: latest WP and ATO
  #2  
Old Sep 25, 2012, 07:56 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Why not hide it with CSS?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 25, 2012, 08:52 PM
derekwbeck
 
151 posts · Nov 2010
But how can you hide it conditionally? That is, hide it if the page is a page, keep it visible if it is a post? I believe I need php to do that conditional statement, but then where to put such php w/o editing the theme?
  #4  
Old Sep 25, 2012, 09:36 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Pages, posts, category pages, and archive pages all have their own classes. Just use those along with the title class to hide what you want.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Sep 25, 2012, 11:17 PM
derekwbeck
 
151 posts · Nov 2010
In comparing my main page (a static page) of my test server:

http://test.derekbeck.com/1775/

and a test blog post:

http://test.derekbeck.com/1775/info/test-w-ata/

I find in both cases, the titles are wrapped in a div class="post-headline".

Am I missing something?
  #6  
Old Sep 26, 2012, 03:34 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Look a the classes on the '<body>'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Sep 26, 2012, 12:21 PM
derekwbeck
 
151 posts · Nov 2010
Awesome, thanks. For future reference for other readers, here's the code I added to the CSS Inserts tab in ATA:

Code:
body.page .post-headline {
	display: none;
}
The above eliminates the title entirely from pages, but retains it for posts.

Bookmarks

Tags
headline, headline title



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I change the font on the post-headline on my pages? ab_insight Center area post/pages 10 Oct 18, 2011 08:24 AM
Remove link from Post Headline on home page - novice GunSafesBlogger Atahualpa 3 Wordpress theme 1 Jun 18, 2010 01:55 PM
[SOLVED] Removing Post Headline on Multi and Single Post Pages jen Center area post/pages 2 Jan 8, 2010 07:46 AM
Headline disappearing on single-post pages. Matt Butts New Versions, & Updating 6 Jul 11, 2009 09:15 AM


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


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