WordPress.org

Ready to get started?Download WordPress

Forums

How to add meta tags in user profile page (4 posts)

  1. komal_seo
    Member
    Posted 1 year ago #

    i made one classified site by wordpress. It has regstration , login, post ad page. i have add SEO Yoast plugin and added meta tag in home page and other pages but In user profile page is display home page meta tages like title and description meta tags. Tell me what i do for user profile page meta tags.

  2. andy2grant
    Member
    Posted 1 year ago #

    i think in the user profile itself at the bottom

  3. James Duffell
    Member
    Posted 1 year ago #

    @komal_seo depending how you've coded this site, the author.php template should be the profile page, if not whatever template you use simply insert a conditional tag within header.php so that when template_name.php is used then it echos the custom meta you wish to use.

    <?php
    if (is_page_template('template_name.php')) {
    //content
    } else {
    //content
    } ?>
  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    Do not modify the theme's files.

    Modifications to theme files will;

    • Compromise the theme,
    • Be compromised when the theme updates,
    • Make difficult debugging processes.

    Some servers automatically update themes when updates are available.

    CSS-only modifications should be implemented using a Custom CSS option of the dashboard, E.g through the Jetpack plugin's Custom CSS functionality.

    CSS and any other modifications should be implemented using a Child Theme.

    It's always a shame to see someone posting a year later saying, "I made loads of changes to my website and now they're all gone!".

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags