Answer the question
In order to leave comments, you need to log in
How to remove an article from the sitemap and indexing in Opencart?
I welcome everyone.
Actually the question is, I want to display some text in the product card, for this I created an article with the necessary text, then I display it by specifying its id, that is, I write the code in the controller:
$this->load->model('catalog/information');
$information_info = $this->model_catalog_information->getInformation(18);
$data['custom_info'] = html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8');
well, in the right place in the template I display it
<?php echo $custom_info; ?>
everything would be fine, but there is one thing, this article is displayed in the sitemap and will be indexed, tell me how to remove it from the sitemap and indexing?
That is, it must be disabled, but here's how to do it
Answer the question
In order to leave comments, you need to log in
it is possible to register in robots
it is possible to prohibit with tags
In the site map builder, do not publish by id
If there is no functionality with noindex, then manually exclude
$('.clik p').click(function(){
var parent = $(this).parent(),
has = $(".hidden", parent).hasClass('active');
$(".hidden").removeClass("active");
!has && $(".hidden", parent).addClass("active");
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question