Jump to content
Sign in to follow this  
onokazu

[Request] Hide/Unhide page title option for each page

Recommended Posts

onokazu

I would like to hide the page title only for certain pages. Currently, if I uncheck the "Show WP titles on pages?" option in "Pages And Posts" then this will hide the page title for all pages. This is not what I wanted. I can modify the source code, but it would be great if this feature added in the future version of this great theme.

Share this post


Link to post
Share on other sites
onokazu

So I created a patch for this. With this you can select to hide/unhide page title for each page.

	diff -rN /iBlogPro-original/config/config_page_post.php /iBlogPro/config/config_page_post.php
	5a6,12
	> 			'hide_pagetitle' => array(
	> 					'version' => 'pro',
	> 					'type' => 'check',
	> 					'where' => 'page',
	> 					'inputlabel' => 'Hide page title',
	> 					'exp' => 'Hides the page title on this page.'
	> 				),
	diff -rN /iBlogPro-original/library/_posts.php /iBlogPro/library/_posts.php
	56c56
	< 					<?php if(pagelines('pagetitles') && is_page()  || is_page_template('page-feature-blog.php')):?>
	---
	> 					<?php if(pagelines('pagetitles') && !m_pagelines('hide_pagetitle', $post->ID) && is_page()  || is_page_template('page-feature-blog.php')):?>
	

Share this post


Link to post
Share on other sites
georgebielinskieu

That's exactly what I want. But where do you insert this code? Cheers, GB

Share this post


Link to post
Share on other sites
georgebielinskieu

Bump. Anyone? I just need to hide page title for only one page - what's the best way to do this? GB

Share this post


Link to post
Share on other sites
garrell

I to would like to know where to place this code.

Share this post


Link to post
Share on other sites
cmunns

This portion: ` 'hide_pagetitle' => array( 'version' => 'pro', 'type' => 'check', 'where' => 'page', 'inputlabel' => 'Hide page title', 'exp' => 'Hides the page title on this page.' ), ` goes in config_page_post.php and this: `<?php if(pagelines('pagetitles') && !m_pagelines('hide_pagetitle', $post->ID) && is_page() || is_page_template('page-feature-blog.php')):?>` is in _posts.php replacing the other line referencing 'pagetitles' fyi: Asking questions on a thread that has been marked as resolved may not get you answers as we do not always look at them and multiple ppl here are responding

Share this post


Link to post
Share on other sites
prolifenz

awesome, works a treat - definitely include this functionality in the next release.

Share this post


Link to post
Share on other sites
renderinnovations

I can't seem to find this type of file... But if anyone else is looking to be able to hide the title pages, or hide all of the page titles, here is another way to do it... Open up your "cpanel" or "file manager" and search for "theme.css" under your platformpro or what ever pageline theme you may have and search for h1.pagetitle {font-size: 2.5em;} Then add this: h1.pagetitle {display: none; font-size: 2.5em;} Keep in mind this removes the title from all pages.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×