diff --git a/components/com_content/views/category/tmpl/blog.php b/components/com_content/views/category/tmpl/blog.php
index 320fbec9471ed..6e2358e88c42d 100644
--- a/components/com_content/views/category/tmpl/blog.php
+++ b/components/com_content/views/category/tmpl/blog.php
@@ -36,12 +36,23 @@
- params->get('show_category_title', 1) or $this->params->get('page_subheading')) : ?>
-
escape($this->params->get('page_subheading')); ?>
- params->get('show_category_title')) : ?>
- category->title; ?>
-
-
+ params->get('show_category_title')) : ?>
+ params->get('show_page_heading')){
+ $head_tag_start = "";
+ $head_tag_end = "
";
+ } else {
+ $head_tag_start = "";
+ $head_tag_end = "
";
+ };?>
+
+ category->title; ?>
+ params->get('page_subheading')) : ?>
+
+ escape($this->params->get('page_subheading')); ?>
+
+
+