Replies
Hi Brajesh,
If it’s working perfectly for you, then maybe I wasn’t putting the code in the right section.
I’ll check one more time and let you know if it works.Also, could you please let me know specifically what is the best way to “noindex” buddypress pages, such as the members directory, from search engines like Google so that users’ avatars don’t show up in search results?
Thank you.
& Happy New Year!I placed <?php do_action( ‘template_notices’ ); ?> at the bottom of header.php, as instructed, but the notification bar is still not showing up.
I need to find out if there is something wrong with my theme. Please what other plugins do you know of that requires <?php do_action( ‘template_notices’ ); ?> in order to show a notification bar? I would like to test it out on my theme to check if the notification bar function of my theme is dysfunctional with all plugins.
Thank you.
Hello Brajesh,
I asked the creators of the theme if it contains that code, and I received the following response from them—-
“Hi,
template_notices is part of buddypress. The action is present in many files of our theme.
Targets
Occurrences of ‘template_notices’ in Directory \KLEO 3.1.1\kleo
Found Occurrences (17 usages found)
Usage in string constants (17 usages found)
kleo (17 usages found)
bbpress (4 usages found)
content-single-user.php (1 usage found)
(14: 24) < ?php do_action( ‘bbp_template_notices’ ); ?>
form-forum.php (1 usage found)
(60: 27) < ?php do_action( ‘bbp_template_notices’ ); ?>
form-reply.php (1 usage found)
(49: 27) < ?php do_action( ‘bbp_template_notices’ ); ?>
form-topic.php (1 usage found)
(66: 27) < ?php do_action( ‘bbp_template_notices’ ); ?>
buddypress\activity (1 usage found)
index.php (1 usage found)
(13: 20) < ?php do_action( ‘template_notices’ ); ?>
buddypress\activity\single (1 usage found)
home.php (1 usage found)
(2: 20) < ?php do_action( ‘template_notices’ ); ?>
buddypress\blogs (1 usage found)
create.php (1 usage found)
(4: 19) < ?php do_action( ‘template_notices’ ); ?>
buddypress\forums (1 usage found)
index.php (1 usage found)
(84: 24) < ?php do_action( ‘template_notices’ ); ?>
buddypress\groups (2 usages found)
create.php (1 usage found)
(19: 21) < ?php do_action( ‘template_notices’ ); ?>
index.php (1 usage found)
(15: 21) < ?php do_action( ‘template_notices’ ); ?>
buddypress\groups\single (1 usage found)
group-header.php (1 usage found)
(74: 13) do_action( ‘template_notices’ );
buddypress\members (4 usages found)
activate.php (1 usage found)
(7: 21) < ?php do_action( ‘template_notices’ ); ?>
register.php (3 usages found)
(10: 22) < ?php do_action( ‘template_notices’ ); ?>
(20: 22) < ?php do_action( ‘template_notices’ ); ?>
(186: 22) < ?php do_action( ‘template_notices’ ); ?>
buddypress\members\single (1 usage found)
member-header.php (1 usage found)
(66: 19) < ?php do_action( ‘template_notices’ ); ?>
kleo-framework\lib (1 usage found)
function-facebook-login.php (1 usage found)
(353: 14) add_action( ‘template_notices’, ‘kleo_fb_register_message’ );”