Categories

Manufacturers

  • Join Our Community
  • Follow us
  • Join Our Community

Menghilangkan / Menghapus Meta tag Generator dari Joomla 1.5 - Bagaimana menghapus Meta tag Generator dari Joomla 1.5 Cetak E-mail PDF

Banyak mungkin menemukan masuknya meta tag ini tidak sesuai untuk situs web mereka. Namun, menentukan bagaimana untuk menghapusnya adalah mengherankan sulit. Berikut adalah solusi yang dianjurkan:

dalam template Anda, tambahkan yang berikut di atas tag <head>:

<? php $ this-> setGenerator ('Apa pun yang Anda inginkan atau biarkan kosong');?>

thats it!

Anda juga dapat mengedit file inti joomla, namun perubahan ini akan hilang jika Anda meng-upgrade situs ini!

File yang Anda ingin mengedit disebut head.php dan ditemukan di sini:
/libraries/joomla/document/html/renderer/head.php

Anda akan ingin untuk menemukan kode berikut (~ baris 167):
$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;

Anda dapat mematikannya dengan hanya komentar baris dengan / / di awal:
//$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;

How to remove Meta Generator tag from Joomla 1.5 PDF Print E-mail

Many may find the inclusion of this meta tag to be inappropriate for their website. However, determining how to remove it is surprisingly difficult. Here is the recommended solution:

in your template, add the following above the <head> tag:

<?php $this->setGenerator('Anything you want or leave empty'); ?>

thats it!


you can also edit the core joomla file, however this change will be lost if you upgrade the site!

The file you want to edit is called head.php and is found here:
/libraries/joomla/document/html/renderer/head.php

you will want to find the following code (~line 167):
$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;

you can turn it off by simply commenting the line with // at the beginning:
//$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;




HomeHome

Cart  

(empty)