*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Meta tag robots showing two times
« on: December 26, 2023, 03:09:18 PM »
Hi,,

I have added this code in head.php in delta theme -
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />

but in blog 2 robots showing but not in Items

see before closing head -- how to remove this line

</script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lora:wght@700&family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
<meta name="generator" content="Osclass 8.2.1" />
<script type="text/javascript">var ocRefreshMessage=10000;var ocRefreshUser=120000;var ocRefreshClosed=60000;var ocBaseUrl="https://ownpetz.com/";var ocAjaxUrl="https://ownpetz.com/index.php?ajaxRequest=1&ajaxChat=1";var ocUserId=0;var ocRemoveMessage="Are you sure you want to remove this chat? Action cannot be undone.";var ocRemoveBlock="Are you sure you want unblock this user? User will be able to contact you via chat.";var ocRemoveBlockAll="Are you sure you want unblock all users? Anyone will be able to contact you via chat.";var ocOptBlock="User blocked";var ocOptEmail="Chat transcript sent";var ocBlockAll="Block all";var ocBlockAllActive="Cancel full block";var ocNewMessage="You have a new message!";var ocAllString="All users blocked";var ocDefImg="https://ownpetz.com/oc-content/plugins/online_chat/img/no-user.png";</script><link href="//cdnjs.cloudflare.com/ajax/libs/lightgallery/1.6.11/css/lightgallery.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" rel="stylesheet" type="text/css" />
<link href="https://ownpetz.com/oc-content/uploads/minify/b48ebab7ca687577672fbd3f608ccee5.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="https://ownpetz.com/oc-content/uploads/minify/d12f4b7f9d98cce87a1630cbf1ec8daf.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.6.11/js/lightgallery-all.min.js"></script>
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />

</head>

<body id="body-custom">

OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

MB Themes

Re: Meta tag robots showing two times
« Reply #1 on: December 26, 2023, 03:52:02 PM »
Modify original instead of adding own meta tags (custom.php, head.php)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Own Petz

  • ****
  • 171 posts
  • OwnPetz - Free Classified Ads. Buy, Sell or Adopt
Re: Meta tag robots showing two times
« Reply #2 on: December 26, 2023, 04:10:27 PM »
Thanks for reply..

I found in custom.php same code available...

But now I have 1 confusion.. I have to modify meta tag in head.php or in custom.php..

Actually I have modified robots meta tag and added below code in head.php

<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1" />

<!-- Open Graph -->
<meta property="og:title" content="<?php echo osc_esc_html(meta_title()); ?>">
<meta property="og:description" content="<?php echo osc_esc_html(meta_description()); ?>">
<!-- Twitter -->
<meta name="twitter:title" content="<?php echo osc_esc_html(meta_title()); ?>">
<meta name="twitter:description" content="<?php echo osc_esc_html(meta_description()); ?>">
« Last Edit: December 26, 2023, 04:20:33 PM by Own Petz »
OwnPetz - Free Classified Ads. Buy, Sell or Adopt Online. https://ownpetz.com

*

MB Themes

Re: Meta tag robots showing two times
« Reply #3 on: December 30, 2023, 09:06:01 PM »
One in custom page might be redundant
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots