Hướng dẫn thêm thẻ H1,H2,H3 vào Xenforo Forum để SEO. Tùy chỉnh thẻ H1,H2,H3 trong diễn đàn dùng mã nguồn Xenforo 2015 mới. Hình ảnh hướng dẫn rõ ràng, chạy oke đã test Vào file Base.php theo đường dẫn sau để sửa PHP: library\XenForo\BbCode\Formatter Tìm đoạn code sau (nhấn Ctrl + F, tìm với nội dung 'img' => array cho nhanh, khoản dòng thứ 356-360 tùy vào phiên bản xenforo) PHP: 'img' => array('hasOption' => false,'plainChildren' => true,'callback' => array($this, 'renderTagImage')), Thêm vào bên dưới đoạn code trên nội dung như sau: PHP: 'h1' => array('hasOption' => false,'plainChildren' => true,'callback' => array($this, 'renderTagH2')),'h2' => array('hasOption' => false,'plainChildren' => true,'callback' => array($this, 'renderTagH2')),'h3' => array('hasOption' => false,'plainChildren' => true,'callback' => array($this, 'renderTagH3')), Kéo xuống dưới dùng, trước dấu đóng của PHP "}" thêm đoạn code sau PHP: public function renderTagH1(array $tag, array $rendererStates){$text = $this->renderSubTree($tag['children'], $rendererStates);return '<h1>' . $text . '</h1>';}public function renderTagH2(array $tag, array $rendererStates){$text = $this->renderSubTree($tag['children'], $rendererStates);return '<h2>' . $text . '</h2>';}public function renderTagH3(array $tag, array $rendererStates){$text = $this->renderSubTree($tag['children'], $rendererStates);return '<h3>' . $text . '</h3>';} Khi soạn nội dung bài viết, chỉ cần chèn đoạn BBcode sau: PHP: [h1]Nội dung thẻcần chèn h1[/h1][h2]Nội dung thẻ h2[/h2][h2]Nội dung thẻ h3[/h2] Như thế bạn đã thêm thẻ h1 h2 vào nội dung bài viết diễn đàn xenforo