WordPress.org

Support

Support » Plugins and Hacks » Toggle The Title » [Resolved] Works but doesnt eliminate the title height

[Resolved] Works but doesnt eliminate the title height

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author avner.komarow

    @avnerkomarow

    from the faq:
    i would like to totally remove the from the dom

    You could do something like this:

    1) Add this function to your functions.php file on you current theme

    '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)

    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);

    Plugin Author avner.komarow

    @avnerkomarow

    it’s been over 2 weeks… I’m resolving this issue.

    if there is a need for further assessment, please feel totally free to re-open the issue (or open a new one).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Works but doesnt eliminate the title height’ is closed to new replies.
Skip to toolbar