New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

no index my buddypress profile pages

  • Participant
    Level: Initiated
    Posts: 1
    jason on #41568

    hello

    Does anyone have a simple solution to adding a tag to my profile pages code to no index them, I dont want to do it via robots?

    Where do I go to add such a tag ?

    J

  • Participant
    Level: Initiated
    Posts: 1
    jason on #41569

    sorry i realised i put this in the wrong section but I cannot remove it

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #41576

    Hello Jason,

    Thank you for posting here. I have previously done some custom code. Please look at it and let me know if it will resolve your issue or not.

    https://gist.github.com/raviousprime/a33414052343dfaafbcf80956648d7ea

    Basically, It will add a meta tag based on user preference like:

    
    <meta name='robots' content='noindex, nofollow' />
    

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved