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? |
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:
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:
4) To not display the title on any single post page or "Page" page, use this as the replacement code: PHP Code:
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> |
|
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. |
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? http://www.snakeyoga.com/WordPressLayoutQuestion.jpg 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. |
Quote:
</h2> </div> when replacing the code. PHP Code:
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> |
1 Attachment(s)
Quote:
PHP Code:
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; HTML Code:
padding-top: 10px; Quote:
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 Code:
|
Here is the original code below:
<?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 } ?> </h2> </div> <?php // Post Byline if( (is_home() ...continued I noticed there was what looks like duplicate code of what you said was missing: </h2> </div> I removed that which didn't work, so i tried removing this as well: <?php } ?> </h2> </div> but that didn't work either. Any suggestions? |
Flynn -
Thank you SO MUCH for your quick and detailed replies. I am certain that I picked the right theme to use for all my WordPress work, both because it is so flexible, and because of your prompt support. I have donated $20 already, and will send more when I can. I know the value of good customer service! Your new coding works very well to allow the Headline box to exist (keeping the <div> tag) but selectively omitting the text contents for either the home page (which I tested) or the array of values (which I don't need right now, but should work fine). Perfect! You suggested changing the Post/Page Styling -> Headline Box to: padding-top: 10px; which I haven't tried. What I did do, that seems to work, is insert: height: 3.5em; Is there likely to be any problem with that for any of the browsers? I don't have all of them set up for testing. I'll switch it to your "padding-top" statement if you think it's more fool-proof. Your final suggestion (in this posting) was for adding a long-title field for each page. I tried it for one page, and it works beautifully, but (of course) for the other pages, since there was no long-title defined, they came up blank in the Headline. I know I can go through all the pages in my site and create a long-title field, but I imagine there's a more elegant solution through making the code test for the existence of the long-title field. If there is no long-title defined (or it's null), then the code could use the normal Title. Do you think you could whip up those couple of lines of code? Again, many, many thanks for your help. I will recommend your theme (and you personally) to everyone I can! Eric |
Quote:
Quote:
PHP Code:
|
Quote:
OLD: PHP Code:
PHP Code:
|
Hey Flynn
I followed your suggestion and the pre-loaded background isn't formatted in the centre section anymore. Here's a the code in question. Thanks again <?php if (!is_page() AND !is_single()) { ?> <!-- Post Headline --> <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 } ?> |
It appears that you've changed it back. I still see the closing </h2></div> and I see no issues with background images.
Perhaps all this is not working due to the plugin post-columns that you seem to be using Try without that plugin and then go from there. You can get two columns without plugin, too. Looks like you have to put extra code into your posts anway (when using the plugin): HTML Code:
[column width="40%" padding="5%"] HTML Code:
<div class="post-left"> And at HTML/CSS Inserts -> CSS Inserts put HTML Code:
div.post-left { HTML Code:
<div style="clear:both"> |
Hey Flynn
I removed the Columns plugin and associated code, installed the HTML/CSS and HTML as directed in your previous post. Unfortunately, there is still some error somewhere. I've left my site as is for you to see what I mean. Thanks again |
You mean the white background? You appear to have "background: #ffffff;" at Post/Page Styling -> POST Container. If you delete that line the white background should go away.
|
Awesome!
Thanks again |
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 ?
|
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. |
Quote:
Any ideas? |
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.
|
All times are GMT -6. The time now is 04:58 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.