[resolved] remove the tags,permalink,shortlink (3 posts)

  1. etimbuk
    Posted 3 years ago #

    i would like to remove the tags,permalink,shortlink, from showing on all post/page and home page

  2. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 3 years ago #

    Hi etimbuk,

    The easiest way to remove all of the post header content is via filter. Add the following to the functions.php file of a Child Theme:

    add_filter( 'oenology_hook_post_header_metadata', __return_false() );

    To see where this filter is defined, look in functions/hooks.php, on Lines 931-969.

  3. hiteshfrnds
    Posted 2 years ago #

    I have added
    add_filter( 'oenology_hook_post_header_metadata', __return_false() );
    in the file functions.php at the end. but it is not working am getting the following error
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/intervie/public_html/wp-includes/plugin.php on line 192

    Warning: implode() [function.implode]: Invalid arguments passed in /home/intervie/public_html/wp-content/themes/oenology/functions/hooks.php on line 968

    Can you please tell, if it still works.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic