Re: Article title not correct in HTML code

  • Gabri
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 8 months ago - 2 years 7 months ago #17771 by Gabri
Hi,
I've purchased Hot Cars Template and it's very nice. I have only one problem:
the article title isn't shown correctly in the HTML code.
For example, if you analyse the code of this page: joomla .gdvpixel.com/about/link you can see that on code
Code:
<div class="item-page"> <h2> Siti consigliati </h2>
instead of
Code:
<div class="item-page"> <h2>Siti consigliati</h2>

I don't know the problem, but I think that it could interfer with SEO..
Can you help me?
Thanks
Last edit: 2 years 7 months ago by milos.

Please Log in to join the conversation.

More
12 years 8 months ago #17780 by ivan.milic
Its ok but there is lot of empty chars around <h2> tag so you maybes see it like that

Please Log in to join the conversation.

  • Gabri
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 8 months ago #17789 by Gabri
Yes, but why in HotJoomla demo website it's showed correctly?
I've also tried to install the hotstart with demo example and the problem is still present..

Please Log in to join the conversation.

More
12 years 8 months ago #17803 by ivan.milic
That is not an problem at all. But if you want to make it without blanks , open:

templates\hot_cars\html\com_content\category\blog_item.php
Code:
<?php if ($params->get('show_title')) : ?> <h2> <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> <?php echo $this->escape($this->item->title); ?></a> <?php else : ?> <?php echo $this->escape($this->item->title); ?> <?php endif; ?> </h2> <?php endif; ?>

modify like this:
Code:
<?php if ($params->get('show_title')) : ?> <h2><?php if ($params->get('link_titles') && $params->get('access-view')) : ?><a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"><?php echo $this->escape($this->item->title); ?></a><?php else : ?><?php echo $this->escape($this->item->title); ?><?php endif; ?> </h2> <?php endif; ?>

Please Log in to join the conversation.

  • Gabri
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 8 months ago #17831 by Gabri
I've made the change, but now the title in some page isn't showed at all, in other stays with spaces.. :unsure:

Please Log in to join the conversation.

More
12 years 8 months ago - 2 years 7 months ago #17845 by ivan.milic
file is in zipped attachment.Also check title where you entered it, maybe blanks come form there.
Last edit: 2 years 7 months ago by milos.

Please Log in to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum