This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

add robots meta-tag to the head of view.php and embed.php file


  1. candy
    Member

    Hi,
    want to add the following line in the view.php and embed.php file:
    <meta name="robots" content="noindex, follow">

    I add the line already in the .../includes/header.php file.
    But the html-header of these two files are unmodified.

    So, how can I implement that?

    thank you in advance :)

    Posted 14 years ago #
  2. yuniar

    Hi candy,

    To add that meta tag, you need to modify "includes/view-functions.php" file instead.

    Search into line 1828 and 2232 and 2361. You will see head tag there.
    Simply insert your meta code there.


    MachForm Founder

    Posted 14 years ago #
  3. CMather
    Member

    In Version 3.3 this is around lines: 4951, 5612, 6147
    "/includes/view-functions.php"

    We added: "<meta name="robots" content="noindex, nofollow" />"
    This will also keep it out of your sitemaps if using XML-Sitemap.

    Posted 12 years ago #
  4. presbyran
    Member

    Hi

    Can this be added as feature?
    So we can only check a checkbox in admin section so that all our forms are noindex?

    Would be nice, so we dont have to mess around the code, and easier when upgrading so we dont have to change it every time.

    In wich line will i add this code: <meta name="robots" content="noindex, nofollow" />
    Im running 3.4

    Please help me yuniar

    Thanks

    Posted 11 years ago #
  5. presbyran
    Member

    Can anyone help me?

    Posted 11 years ago #
  6. yuniar

    Sorry, I missed your post. You can edit around line 5687:

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    simply put your meta tag there, below that line.


    MachForm Founder

    Posted 11 years ago #
  7. budapestguide
    Member

    Hello, thanks for the clear instructions. I think it would be important to have it as a feature. Until I saw this post, I simply supposed that all forms are with noindex, nofollow.

    Some SEO expert is needed here, but as far as I remember forms as such should not be crawled at all.

    Posted 11 years ago #

RSS feed for this topic

Reply