How to turn off page Titles but still have Post titles


  Page 1 of 2 Next Last 
Author Message
DLR

Posted: 9/17/2010
Quote message 

How to turn off page Titles but still have Post titles?
 
Bud

Posted: 9/17/2010
Quote message 

This is the way I have done it. It seems like a lot of work but it solves the problem and still works within Artisteer's design scheme.

In the functions.php file find this function (around line 325)...

function art_post(){
the_post();
echo art_parse_template("post", array(
'post_class' => function_exists('get_post_class') ? implode(' ', get_post_class()) : '',
'post_id' => 'id="post-' . get_the_ID() . '"',
'post_thumbnail' => art_get_post_thumbnail(),
'post_title' => art_get_post_title(),
'post_metadataheader' => art_get_post_metadata('header'),
'post_content' => art_get_post_content(),
'post_metadatafooter' => art_get_post_metadata('footer')
));
}


Copy it and paste it directly below. Then rename art_post to art_post_no_title


function art_post_no_title(){
the_post();
echo art_parse_template("post", array(
'post_class' => function_exists('get_post_class') ? implode(' ', get_post_class()) : '',
'post_id' => 'id="post-' . get_the_ID() . '"',
'post_thumbnail' => art_get_post_thumbnail(),
'post_title' => art_get_post_title(),
'post_metadataheader' => art_get_post_metadata('header'),
'post_content' => art_get_post_content(),
'post_metadatafooter' => art_get_post_metadata('footer')
));
}


Now save the functions file.

Next make a copy of your post.php file in the templates folder and rename it post_no_title.php.

Open this new file and remove these two lines...

<?php echo $posttitle; ?>
<?php echo $post_metadataheader; ?>

Then save the file.

Last but not least, open the page.php file in the theme root (not the one in the templates folder) and change this line..
[code}
art_post();
[\code]
to this...

art_post_no_title();


Now only the pages should be missing the H2 title and you can put your own H2 (or H1) within the page content itself to keep your SEO magic intact.

Don't forget to make backups of everything before you start.

Bud
thetemplateer.com
budstechshed.com
 
Bud

Posted: 9/17/2010
Quote message 

Darn forum software without preview :-<

It took it even without the validation code.

 

art_post();
[\code]
 
Bud

Posted: 9/17/2010
Quote message 

I give up!!! :-<
 
DLR

Posted: 9/17/2010
Quote message 

Thanks Bud!

But there has to be a better way as Most Commercial designers need to remove the title so Top graphics are not pushed down by it. I am still in the layout process with a client on this and not going to make that long ass change Everytime.

Artisteer needs to get this figured out Very soon. They had requests they ignored for WP3.0 and this one little issue will insure commercial designers don't use it.

Not going to even talk to about their lack of ability to fix their Own forums lol
 
Adeptris

Posted: 9/18/2010
Quote message 

DLR / Bud,

Just a heads up before you do to much with the 2.5 changes.

There is a post in one of these treads with a reply from Artisteer support, that they are aware of the problems around this release and are working on a new version, with the same structure as the last 2.4.

@Bud,
May be worth you contacting them as it will affect you ongoing work with thetemplater.

David

 
Adeptris

Posted: 9/18/2010
Quote message 

Found it, but the Artisteer reply is a bit confusing, not sure what thay are saying here!

Last few comments of this topic:
http://www.artisteer.com/Default.aspx?post_id=143000&p=forum_post

David
 
DLR

Posted: 9/18/2010
Quote message 

As always Bud and Adeptris are here to help! Always glad to see you guys!<br /><br />

There needs to be an easy fix for this honestly. On an average client site we'll redo/fine tune the template 10 to 30 times throughout the installation of a site and having to change this that and the other thing Everytime is a HUGE time waster, dropping profit margins to zip. It's begining to seem like purchasing this program is just raising my costs.<br /><br />
Signed,<br />
Frustrated
 
Adeptris

Posted: 9/19/2010
Quote message 

Ok lets make this easy, in Artisteer 2.5 there is a file called /templates/post_title.php

The code just returns the title for posts and pages, however the code in this pastebin link will hide the title on pages!

http://digitalraindrops.pastebin.com/K3nDFtAV

The next bit is for the novices :-)
Why do we not just delete the code?
You may have seen more than a few topics where the answer is find this code and delete it, there are a couple of costs to deleting code.

1. By hiding the title we have a way of restoring the Post Title if we want to change it later.
2. Search engines use the page title and not the menu when indexing your page, there could well be an important keyword in the page title that would bring visitors to your website!

By hiding the title the search engines will still see it and index it, but your visitors will not!

Hope this helps.

David :)
 
Adeptris

Posted: 9/19/2010
Quote message 

Wrong Link:
http://digitalraindrops.pastebin.com/ZuV52WPx


<?php if(!is_page()) : ?>
<h2 class="art-postheader" style="display:none; height:5px;">
<a href="<?php echo $post_link; ?>" rel="bookmark" title="<?php echo $post_link_title; ?>"><?php echo $post_title; ?></a>
</h2>
<?php else : ?>
<h2 class="art-postheader">
<a href="<?php echo $post_link; ?>" rel="bookmark" title="<?php echo $post_link_title; ?>"><?php echo $post_title; ?></a>
</h2>
<?php endif; ?>


All it says is if the post is a page then display=none and change the height to 5px, else it will do as before!

David


 
Abland

Posted: 9/19/2010
Quote message 

Hi, David,

[quote=Adeptris}The next bit is for the novices :-)
Why do we not just delete the code?
Guilty as charged :-/ . I've used display:none for the site slogan and title for the same reasons of SEO, but neglected to apply the same to page titles. Happens to the best of us? (haha)

I appreciate the reminder and have adjusted my scripts accordingly.
 
DLR

Posted: 9/20/2010
Quote message 

Thanks Adeptris

I copied that in from the pastebin and title is still showing?
 
Adeptris

Posted: 9/20/2010
Quote message 

Hi DLR,
I had the condition messed up, I have added !important that will give priority to the inline style.

Revised Code: if this does not work will have a look tomorrow:
http://digitalraindrops.pastebin.com/uD0msLGe


<?php if(is_page()) : ?>
<h2 class="art-postheader" style="display:none !important;">
<a href="<?php echo $post_link; ?>" rel="bookmark" title="<?php echo $post_link_title; ?>"><?php echo $post_title; ?></a>
</h2>
<?php else : ?>
<h2 class="art-postheader">
<a href="<?php echo $post_link; ?>" rel="bookmark" title="<?php echo $post_link_title; ?>"><?php echo $post_title; ?></a>
</h2>
<?php endif; ?>

 
Adeptris

Posted: 9/20/2010
Quote message 

Works!



8-)
 
DLR

Posted: 9/22/2010
Quote message 

Thanks Adeptris!

It does work now, though just playing with it on a test site it seems to still hold that space for it even though its not showing it?

Thanks again!!!
 
Paddy

Posted: 9/26/2010
Quote message 

:-)

I have been searching for this for SO long... as its an artisteer theme all advice on standard WP themes is useless!

Thanks for the effort!!
 
Rich

Posted: 10/21/2010
Quote message 

Is there a way to still have titles for the Posts?


 
Marty

Posted: 11/18/2010
Quote message 

Thank you, thank you...thank you. I appreciate it. i've been working on the title and comments for hours. Why doesn't artisteer fix this issue. I've also had issues with the H tags. By looking to fix the above issue I ran across a fix for the H tags. Artisteer....I bought your product so I wouldn't have to hack wp. How about fixing thees issue. Sheeeezzzzzz.
 
Steve

Posted: 12/3/2010
Quote message 

Thanks, Adeptris. That truly works like a charm! :-)
 
MayClem72

Posted: 2/21/2011
Quote message 

help!!!!

i've been trying this for a while, and none of the changes to the code listed here seem to work - no matter what changes i make to my theme files, the damn page titles still show up!

anyone know if any updates have altered how this fix would need to be made?

my site is www.mayclem.co.uk - though its just been put up, no real content yet
 
vtxyzzy

Posted: 2/21/2011
Quote message 

I like to use a child theme so I don't modify the Artisteer output in case I need to make changes back in Artisteer. I add the following function to my child theme's functions.php:

function mam_title_filter($title) {    

global $post;
if ($post->post_type == 'page') {
$title = '<span class="page_title">' . $title . '</span>';
}
return $title;
}
add_filter('the_title','mam_title_filter');


Then, in the child's style.css I add this:

.page_title { display: none; }

That seems to work for me.
 
Kim

Posted: 2/22/2011
Quote message 

Quote vtxyzzy:

I like to use a child theme so I don't modify the Artisteer output in case I need to make changes back in Artisteer.


I'm using Genesis 1.5 and have made Artisteer a child theme. Sadly, when I implement the fix you suggest, my main menu labels disappear. :(

 
vtx

Posted: 2/23/2011
Quote message 

Sorry about that. I use the WP menus, so I didn't see that.
 
Paul

Posted: 4/6/2011
Quote message 

I had found a code for post.php which was working to remove the page titles however after using on 3-4 sites successfully it's now leaving a rogue h2> tag for some reason.

Anyone any ideas? Site is at www.setupmarketing.com

:*)
 
daniel

Posted: 11/8/2011
Quote message 

HI
I have thoroughly exhausted every forum thread here and still no luck
simply want to move the page name from the top of the sheet
for obvious reasons still wanting all the meta data etc to remain hidden for seo
im using version 3.0.0.41865 home and academic version (using mac version)
In the editor section I only have these options that follow

Templates
404 Template
(404.php)
Archives
(archive.php)
Attachment Template
(attachment.php)
Comments
(comments.php)
Footer
(footer.php)
Header
(header.php)
Main Index Template
(index.php)
One Column Page Template
(onecolumn-page.php)
Page Template
(page.php)
Search Form
(searchform.php)
Search Results
(search.php)
Single Post
(single.php)
Theme Functions
(functions.php)
admins.php
(admins.php)
content-aside.php
(content-aside.php)
content-attachment.php
(content-attachment.php)
content-gallery.php
(content-gallery.php)
content-page.php
(content-page.php)
content-single.php
(content-single.php)
content.php
(content.php)
defaults.php
(defaults.php)
legacy-comments.php
(legacy-comments.php)
legacy.php
(legacy.php)
misc.php
(misc.php)
navigation.php
(navigation.php)
options.php
(options.php)
shortcodes.php
(shortcodes.php)
sidebar-bottom.php
(sidebar-bottom.php)
sidebar-default.php
(sidebar-default.php)
sidebar-footer.php
(sidebar-footer.php)
sidebar-secondary.php
(sidebar-secondary.php)
sidebar-top.php
(sidebar-top.php)
sidebars.php
(sidebars.php)
smiley.php
(smiley.php)
widgets.php
(widgets.php)
wrappers.php
(wrappers.php)
Styles
Stylesheet
(style.css)
style.ie6.css
(style.ie6.css)
style.ie7.css
(style.ie7.css)

there is no such thing as a check box as mentioned in previous thread for version 3 either
 
daniel

Posted: 11/8/2011
Quote message 

have tried adding aforementioned coding in a variety of places but guessing maybe the language is different in this version to the version the code was designed for????
 
gcm

Posted: 11/9/2011
Quote message 

You can go into wordpress - select pages then chose a page to edit. On the right hand side of the screen there is an option "Show Title on Page" You can remove the checkmark and the title should not show up on your page



Quote daniel:

have tried adding aforementioned coding in a variety of places but guessing maybe the language is different in this version to the version the code was designed for????


 
daniel

Posted: 11/9/2011
Quote message 

thanks very much that makes it very simple looking other than the fact that there is no theme option box on my page dashboard. I do have the rest of your screen shot, just not the theme options.
thanks for your quick response and i look forward to your next response
kind regards
 
daniel

Posted: 11/9/2011
Quote message 

thanks very much that makes it very simple looking other than the fact that there is no theme option box on my page dashboard. I do have the rest of your screen shot, just not the theme options.
thanks for your quick response and i look forward to your next response
kind regards
 
gcm

Posted: 11/9/2011
Quote message 

In the page edit section of wordpress, go to the page you want to remove the title from. At the top right of the screen is "screen options" That will open up to show options you can select. One of them is theme options. That should allow you to remove the page title. I hope this is what you are looking for.





Quote daniel:

thanks very much that makes it very simple looking other than the fact that there is no theme option box on my page dashboard. I do have the rest of your screen shot, just not the theme options.
thanks for your quick response and i look forward to your next response
kind regards


 
  Page 1 of 2 Next Last