[Solved] Category Title Missing

More
13 years 4 months ago #16915 by Jonl
This has been driving me mad as I'm sure that there is a simple solution, but I can't find it.

I have a directory with a number of categories. All appear to be set up in the same way, but the category titles are displayed differently.

One of the categories shows the Category title inside <h1 class="componentheading">, but others show the category title inside <h2 class="flexicontent cat36"> tag.

For SEO reasons, I would like all to show the h1 tag.

The correct page is
www.tenbyvisitorguide.co.uk/guest-houses-in-tenby.html

An example of the incorrect page is
www.tenbyvisitorguide.co.uk/hotels-in-tenby.html

Does anyone have any solutions or suggestions?

Jon

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #16955 by ggppdk
Your are right, i looked at the template code and found the reason:
in yourtemplate/category.php
there is this code
Code:
<!-- BOF page title --> <?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->category->title) : ?> <h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?> </h1> <?php endif; ?> <!-- EOF page title -->

As you can see the <h1 ... title will not be displayed if your category title is the same as the title of the page
Do this:
Code:
/*&& $this->params->get('page_title') != $this->category->title */

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 13 years 4 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #16977 by Jonl
That's exactly right. Many, many thanks.

Jon

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #16982 by ggppdk
This behavior of the template is confusing because, it happens without warning why.

I will open an issue in the bug Tracker and ask Emmanuel to remove this 'if' code.

Thank you for reporting, the description you gave originally was good enough to find this.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 13 years 4 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #17070 by ggppdk
Hello,

a warning, it is better NOT COMMENT OUT the:
<h2 class="flexicontent cat<?php echo $sub->id; ?>"> ... ...
in category_category.php,
since it is needed because the line:
<h1 class='componentheading' ...
is inserted only when you enable "Show page title" in the menu item pointing to the category"

I think in general it is better to turn off "Show page title" in the menu item and use the category title. Then you could could style up the
h2.flexicontent with css.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #17192 by micker
great thanks ggppk
Jonl
can you edit your post and add [solved] in title ?
Thanks

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.404 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline