Eliminating the original title space (redux)
-
Terrific plugin!
Small question. In a support query about 11 months ago, entitled “Works but doesn’t eliminate title height”, you suggested adding this to the functions.php file:
___
‘function return_page_title_html_block($post) { $is_page_title_active = get_post_meta($post->ID, $key = ‘toggle_page_title’, $single = true); if($is_page_title_active == ” || $is_page_title_active) return ‘
‘ . $post->post_title . ‘‘; return ‘ ‘; }’
(without the tick marks of course)
__
In your suggested code above, I’m not sure how many tick marks to delete (and crashed my page briefly as a result). Would the code look like this?
___
function return_page_title_html_block($post) { $is_page_title_active = get_post_meta($post->ID, $key = toggle_page_title, $single = true); if($is_page_title_active == || $is_page_title_active) return
. $post->post_title .; return ; }
____
And then, do I absolutely have to do the following to make it work (also your suggestion from back then):
___2) In your page.php file replace the title with the h1 tags to a call to echoing out the above function – print return_page_title_html_block($post);
___
Many thanks in advance!
Jeremy
- The topic ‘Eliminating the original title space (redux)’ is closed to new replies.