BuddyDev

Search

Buddypress SEO

  • Participant
    Level: Initiated
    Posts: 15
    Kerem Erdal on #18798

    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" />
  • Keymaster
    (BuddyDev Team)
    Posts: 24670
    Brajesh Singh on #18804

    Hi Kerem,
    You can use the wp_heade hook for generating the meta.
    https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head

    You can put the code in bp-custom.php or functions.php in your theme.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved