Hi,
How can i add the title, meta description and meta keywords for buddypress pages by code without plugin?
I investigated and i encountered below codes. For example, I want to add the title, meta description and meta keywords for buddypress groups page. Where should i add the code for groups page?
<title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
<meta name="description" content="Special stories and tales about dogs, cats, birds, ferrets, and other domestic animals as told by Harriet Smith, veterinarian. Stories include tales of animal bravery and courage, life and death, companionship, and the wonderful joy animals and pets bring to their human partners." />
<meta name="keywords" content="stories, tales, harriet, smith, harriet smith, storytelling, veterinarian, vets, animal doctor, bravery, brave, courage, life, lives, death, dying, pets, human, companionship, dog, cat, birds, ferrets, pets, pet, birth, puppies" />
Hi Kerem,
You can use the wp_heade hook for generating the meta.
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_headYou can put the code in bp-custom.php or functions.php in your theme.
Regards
Brajesh
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
This topic is: not resolved