[résolu]Balise h1 inexistante

More
6 years 7 months ago - 6 years 7 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: 6 years 7 months ago by akg.

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

More
6 years 7 months ago #20950 by ggppdk
<!-- 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 review. Thanks!

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

More
6 years 7 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
6 years 7 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 review. Thanks!

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

More
6 years 7 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 http://www.coupdoeil.eu/Trucs-et-Astuce ... photo.html

Merci pour votre aide

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

More
6 years 7 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 review. Thanks!

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

More
6 years 7 months ago #20998 by akg
Replied by akg on topic [résolu]Balise h1 inexistante
Excusez moi mais je suis débutant en php, pouvez vous me donner un exemple par rapport au code que je vous ai donné

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

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

More
6 years 7 months ago #21000 by ggppdk
Since you are beginner, it would be better not to change it !!!

I use these templates with this format, myself too.

If this part of the standard templates gets updated, they will be available with the download package of FLEXIcontent. :)

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 review. Thanks!

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

More
6 years 7 months ago #21121 by akg
Replied by akg on topic [résolu]Balise h1 inexistante
J'ai réglé le problème en allant dans le menu type et article puis dans las paramètres monBlog afficher le titre de la page non, ce qui fait que je me retrouve avec un seul title, et que ensuite dans le contenu de mon article j'ai pu insérer mes balises h1 et h2 sans aucun problème

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.