Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Removing page name from Body. Also, adding links into Footer


  #1  
Old Jan 30, 2009, 05:24 PM
OrganicAnalyticsNow
 
14 posts · Jan 2009
Removing page name from Body. Also, adding links into Footer

Hi Flynn,

Great job on this theme!
I just have a few customizations to be completed, and I can't find the info for these specific changes.

The first thing is removing the Page Name from the body of the page. Do I have to go in and change the CSS code or am I missing something from the Options Menu?

Secondly, I want to add a static horizontal lisitng of links (Sitemap; Links; Privacy; etc) above the WordPress and BFA credits. How do I do that?

Last edited by OrganicAnalyticsNow; Jan 31, 2009 at 07:40 PM.
  #2  
Old Jan 30, 2009, 06:02 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
1) To remove the headline on only the static homepage see http://forum.bytesforall.com/showthread.php?t=126 post #13

2) To remove the headline on specific "Page" pages but leave them on the rest, do as described in that post but use the following as the replacement code:

PHP Code:
<?php $current_page_id $wp_query->get_queried_object_id();
$no_title_on_these_pages = array(XXYYZZ);
if (!
in_array($current_page_id$no_title_on_these_pages)) { ?>
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
        </div>
<?php ?>


In the code above, replace XX, YY and ZZ in line 2 with the ID's of pages that shall have no title in the body. To find the ID of a page, go to Site Admin -> Pages and hover over the page title with the mouse and watch the browser status bar for an URL ending on "...action=edit&post=XX". XX is the ID of that page.

3) To not display the title on ANY "Page" page use this as the replacement code
:

PHP Code:
<?php 
if (!is_page()) { ?>
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
        </div>
<?php ?>


4) To not display the title on any single post page or "Page" page, use this as the replacement code:

PHP Code:
<?php 
if (!is_page() AND !is_single()) { ?>
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
        </div>
<?php ?>



To add links or text to the footer see Atahualpa Theme Options -> Footer ->
Footer: Content

To add a link, simply use HTML, such as

HTML Code:
<a href="http://www.my-other-site.com/">My other site</a>
The things you have between "Home" and "WHAT’S ORGANIC ABOUT ANALYTICS?" are 3 images that you should be able to delete when you edit that page.
  #3  
Old Feb 1, 2009, 12:29 AM
OrganicAnalyticsNow
 
14 posts · Jan 2009
Awesome!

Thanks for the ultra-quick reply!

Matt
www.OrganicAnalyticsNow.com

Last edited by OrganicAnalyticsNow; Feb 1, 2009 at 12:30 AM. Reason: forgot my link
  #4  
Old Feb 1, 2009, 01:51 AM
OrganicAnalyticsNow
 
14 posts · Jan 2009
One last thing .. is it possible to eliminate the empty space between the banner and my copy?
I tried to change the heading and body margins to no avail.

Thanks again.
  #5  
Old Feb 1, 2009, 04:46 AM
Eric Bobrow
 
70 posts · Jan 2009
I now have a different situation related to leaving out the page name. Your instructions work great, but in my second WordPress site (http://www.snakeyoga.com) I have made the theme create a contrasting stripe for the Headline area.

I'd like to leave out the text for the Headline for the Home Page (i.e. I don't want it to say "Home") but I want to keep the Headline area (the yellow stripe) so that it is consistent with the other pages. See the graphic below.

Is there any way to do this?



One final related question: is there a way to have a different Title in the Headline than in the Page Menu? I'd like to have shorter titles in the Page Menu, but perhaps longer, more descriptive ones at the top of the page.

I know I can turn off the Page Title using the tips you have given, then fill in a pseudo-title at the top of the page contents. However, this runs into a problem: I can't create a color strip (as in the screen-capture above) in the Body that matches the Headline strip. I tried, but couldn't figure out how to do it. My attempted copy of the Headline color strip (using a table) was enclosed / bounded by the page background color, with some amount of padding that I couldn't figure out how to remove.

Last edited by Eric Bobrow; Feb 1, 2009 at 05:57 AM. Reason: I added my final question about how to get a different Title in Headline than in Page Menu.
  #6  
Old Feb 1, 2009, 07:39 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by Eric Bobrow

I'd like to leave out the text for the Headline for the Home Page (i.e. I don't want it to say "Home") but I want to keep the Headline area (the yellow stripe) so that it is consistent with the other pages. See the graphic below.

Is there any way to do this?
Use this as the replacement code
PHP Code:
        <div class="post-headline">  
<?php if (!is_front_page()) { ?>  
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
<?php ?> 
        </div>

Note how the PHP "if..." condition does not enclose the
<div class="post-headline"> ... </div> anymore. You can do the corresponding change to the other code samples (No page title on several page ID's, etc..)

Also, change Post/Page Styling -> HEADLINE Box: Text from

HTML Code:
margin-top: 10px;
to

HTML Code:
padding-top: 10px;
to correct the Firefox issue as seen in the attachment below

Quote:
Originally Posted by Eric Bobrow
One final related question: is there a way to have a different Title in the Headline than in the Page Menu?

Add a "custom field" at Pages -> Edit -> [below the edit screen] Custom Fields -> Add Custom Field, with

Name: long-title
Value: Long Page Title here...

Do this for every "Page" page.

In index.php, around line 97-99, change

PHP Code:
            } ?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
to

PHP Code:
            } ?>"><?php 
        
} if (is_page()) { echo get_post_meta($post->ID'long-title'TRUE); } else { the_title(); }
        if( !
is_single() AND !is_page() ) { ?>
I have not tested this.
Attached Thumbnails
Click image for larger version

Name:	snakeyoga.jpg
Views:	1553
Size:	14.5 KB
ID:	24  
  #7  
Old Feb 1, 2009, 06:35 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by OrganicAnalyticsNow
One last thing .. is it possible to eliminate the empty space between the banner and my copy?
I tried to change the heading and body margins to no avail.

Thanks again.
You must have missed the closing

</h2>
</div>

when replacing the code.
PHP Code:
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2> <------- THIS
        </div> <------- AND THIS

Now those </h2> and </div> are still there and the remaining </div> is closing the <div class="post"> before the <div class="post-bodycopy">. The space is being caused by the now empty <div class="post"> .. empty .. </div>




  #8  
Old Mar 23, 2009, 10:57 PM
docran
 
4 posts · Mar 2009
I've inserted the code to header.php but nothing`s changed. The page title still displayed in the body. What could be the problem ?
  #9  
Old Jan 18, 2010, 11:21 AM
LuchoTV
 
3 posts · Jan 2010
Hi Flynn,

Thanks a lot for your great atahualpa theme!

I need to hide all "Page" pages titles in my blog and I haven't been able to do it. I have read some posts at your forum and I have found out that the solution is replacing some code to the index.php file (the one from the atahualpa theme), I already have the code but the problem is my atahualpa's index.php file doesn't have that code, in fact, it only has 40 lines of code. I am using atahualpa 3.4.5 I will appreciate a lot your help on this matter,

Thanks a lot for your time,

Luciano.
  #10  
Old Feb 23, 2010, 12:14 PM
fr453r
 
2 posts · Feb 2010
Quote:
To remove the headline on specific "Page" pages but leave them on the rest, do as described in that post but use the following as the replacement code:
I only seem to have 51 lines in my index.php - just downloaded the latest version of atahualpa and checked the file and it too only has 51 lines. I've tried adding the code to various different areas to the index.php and nothing seems to work...

Any ideas?
  #11  
Old Feb 23, 2010, 01:46 PM
juggledad's Avatar
juggledad
 
23,758 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the original post was over a year ago and that outs it back at release 3.2 and atahualpa is now at release 3.4.6 - I'm going to close this thread, please start another one describing what you want to do.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing header, footer and sidebars for a "splash" page mactony Header configuration & styling 29 Jun 9, 2010 08:10 PM
Removing links in footer: WordPress Wordpress Themes Premium Wordpress Themes? Alien99 Post-Kicker, -Byline & -Footer 13 Aug 4, 2009 08:22 AM
[SOLVED] home vs other page positoning of a body image + a footer question fcitino Atahualpa 3 Wordpress theme 4 Jun 17, 2009 08:52 AM
removing footer links byronyasgur Atahualpa 3 Wordpress theme 3 Feb 2, 2009 07:43 AM


All times are GMT -6. The time now is 05:30 PM.


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