WordPress.org

Ready to get started?Download WordPress

Forums

Toggle The Title
[resolved] Works but doesnt eliminate the title height (3 posts)

  1. Tech4Eleven
    Member
    Posted 1 year ago #

    This plug-in works pretty good as it eliminates the title however some styling is still left over as I can see the height of the area where the title would be.

    See what I mean here. Can this be fixed?

    http://take.ms/dUgEQ

    http://wordpress.org/extend/plugins/toggle-the-title/

  2. avner.komarow
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. avner.komarow
    Member
    Plugin Author

    Posted 12 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.