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 »

Preventing page title from showing on single post pages


  #1  
Old Oct 30, 2009, 01:42 AM
bill
 
3 posts · Oct 2009
Atahualpa is a great theme.

It would be great to know how to prevent page titles from showing on single post pages while showing on all other pages (except the homepage).

Here's an example of the problem: http://makingmindsmatter.com/2009/10/30/cheap-schools/

On this page (and all other single post pages) my post title appears twice. I would like to get rid of the top one.

I added this code to create page titles:

<h2><?php wp_title(); ?></h2>

What I don't know is how to write code to prevent the page title from showing on single post pages.
  #2  
Old Oct 30, 2009, 05:11 AM
bill
 
3 posts · Oct 2009
Never mind. I figured it out. I copied index.php, renamed it single.php, took out the code related to above the loop, and then put the single.php in the same folder as the index.php. Worked right away.
  #3  
Old Oct 30, 2009, 09:37 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you probably could do the same thing by just putting a php IF in 'The LOOP' and then you wouldn't have to worry about the next upgrade with something link changing the line

HTML Code:
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
to
HTML Code:
<?php if (!is_single()) {bfa_post_headline('<div class="post-headline">','</div>'); } ?>
Where and why did you add the '<h2><?php wp_title(); ?></h2>' ?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Oct 30, 2009, 11:12 PM
bill
 
3 posts · Oct 2009
I added the '<h2><?php wp_title(); ?></h2>' above the loop because I wanted titles on my pages.
  #5  
Old Oct 31, 2009, 05:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
But page titles will display on the page??
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Single page showing as Atahualpa after changing theme joshj Atahualpa 3 Wordpress theme 2 Sep 15, 2009 03:58 PM
Single Post Pages--How to make post title a link? chainpin Atahualpa 3 Wordpress theme 4 Aug 20, 2009 02:02 PM
Post title not showing up on single post page metalbuzz Post-Kicker, -Byline & -Footer 2 Jul 17, 2009 01:11 PM
Headline disappearing on single-post pages. Matt Butts New Versions, & Updating 6 Jul 11, 2009 10:15 AM
Banner over Single Post Title jay2009 Header configuration & styling 0 Mar 21, 2009 05:41 PM


All times are GMT -6. The time now is 12:05 AM.


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