[résolu]Balise h1 inexistante

More
12 years 11 months ago - 12 years 11 months ago #20939 by akg
Bonjour
Je viens de m'apercevoir que les titres de mes articles sont en h2 et pas en h1 dans flexicontent, pouvez me dire pourquoi ? Merci
Last edit: 12 years 11 months ago by akg.

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

More
12 years 11 months ago #20950 by ggppdk
Code:
<!-- BOF page title --> ... <h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?> </h1> ... <!-- EOF page title --> <!-- BOF item title --> ... <h2 class="contentheading flexicontent"><span class='fc_item_title'> <?php ... ?> </span></h2> ... !-- EOF item title -->
The above code is inside your template unless you have change the template file ...
open the file:
components/com_flexicontent/templates/mytemplate/item.php

and check


-- 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
12 years 11 months ago #20962 by akg
Replied by akg on topic [résolu]Balise h1 inexistante
Merci pour votre réponse je viens de vérifier mes templates et ces lignes de codes sont présentes, le problème doit venir d'ailleurs ?

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

More
12 years 11 months ago #20971 by ggppdk
Maybe you are loading different template ?

If you put this line just after the opening of h2 :
<?php echo "inside title"; ?>

does it get printed?


-- 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
12 years 11 months ago #20995 by akg
Replied by akg on topic [résolu]Balise h1 inexistante
Avant de faire des bétises je vous montre le code de mes 2 templates, dites moi svp ce que je dois changer

N° 1
<!-- BOF page title -->
<?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->item->title) : ?>
<h1 class="componentheading">
<?php echo $this->params->get('page_title'); ?>
</h1>
<?php endif; ?>
<!-- EOF page title -->

<!-- BOF item title -->
<?php if ($this->params->get('show_title')) : ?>
<h2 class="contentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<?php echo $this->escape($this->fields->display); ?>
</h2>
<?php endif; ?>
<!-- EOF item title -->

N° 2
<!-- BOF page title -->
<?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->item->title) : ?>
<h1 class="componentheading">
<?php echo $this->params->get('page_title'); ?>
</h1>
<?php endif; ?>
<!-- EOF page title -->

<!-- BOF item title -->
<?php if ($this->params->get('show_title', 1)) : ?>
<h2 class="contentheading flexicontent">
<?php echo $this->escape($this->item->title); ?>
</h2>
<?php endif; ?>
<!-- EOF item title -->

Voici aussi la page en question www.coupdoeil.eu/Trucs-et-Astuce ... photo.html

Merci pour votre aide

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

More
12 years 11 months ago #20997 by ggppdk
To make item title h1 , just exchange (in the text)
<h1 class="componentheading">
with
<h2 class="contentheading flexicontent">

and also exchange the closing tags h1 and h2 tags


If you use "page title" the menu items change:
<h2 class="contentheading flexicontent">
to some div with appropriate styling ...
e.g. <div class="page_title">
and then use css to style it in the item.css file


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.425 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