Space in H1 when the title is personalized
Space in H1 when the title is personalized
Hello
When we have chosen a personalized title instead of the menu link, we get a space in the code between the <h1> tag and the beginning of the title.
<h1>MyTitle</h1>
<h1>spaceMyCustomTitle</h1>
Do you know why ?
Daniel.
When we have chosen a personalized title instead of the menu link, we get a space in the code between the <h1> tag and the beginning of the title.
<h1>MyTitle</h1>
<h1>spaceMyCustomTitle</h1>
Do you know why ?
Daniel.
Re: Space in H1 when the title is personalized
Hello,
sorry - I do not understand what you mean.
Have you a link for me?
Gert
=================================
PS: Do you mean an alternative page heading? That I can reproduce ... will have a look tomorrow.
sorry - I do not understand what you mean.
Have you a link for me?
Gert
=================================
PS: Do you mean an alternative page heading? That I can reproduce ... will have a look tomorrow.
Re: Space in H1 when the title is personalized
Hello Daniel,
I have found it, will be fixed in the next version.
It is a very ancient bug in the page_params plugin, nobody has noticed it, since more than 10 years
- you can fix it by yourself, because there will not be a new CMSimple version next days.
Open ./plugins/page_params/index.php, search for "\\1 " and remove the space behind the 1 (two times), and the problem is gone,
Gert
I have found it, will be fixed in the next version.
It is a very ancient bug in the page_params plugin, nobody has noticed it, since more than 10 years

Open ./plugins/page_params/index.php, search for "\\1 " and remove the space behind the 1 (two times), and the problem is gone,
Gert
Re: Space in H1 when the title is personalized
Hello
I myself only noticed it recently. It has no influence on SEO. But for a clean code ...
Thanks, Daniel
I myself only noticed it recently. It has no influence on SEO. But for a clean code ...
Thanks, Daniel
Re: Space in H1 when the title is personalized
Hello,
Is there a disadvantage in settings.CMS/Uri separator to replace "__" by "-" ?
Moreover, why this choice in URL's of "__" and not "-" as we usually see ?
Is there a disadvantage in settings.CMS/Uri separator to replace "__" by "-" ?
Moreover, why this choice in URL's of "__" and not "-" as we usually see ?
Tout va bien !
https://tuto-cmsimple.reseauk.info
https://tuto-cmsimple.reseauk.info
Re: Space in H1 when the title is personalized
I would not do so, because "-" is an often used character in page names,
Gert
Re: Space in H1 when the title is personalized
Sorry, I love "-" !
If I fill in "_", is it OK ?

If I fill in "_", is it OK ?
Tout va bien !
https://tuto-cmsimple.reseauk.info
https://tuto-cmsimple.reseauk.info
Re: Space in H1 when the title is personalized
Try it - but do not wonder about the results

I will not make test series with that.
Why you do not try "---"

Gert
Re: Space in H1 when the title is personalized
Because I didn't know it existed 
Well, it's prettier that way.

Well, it's prettier that way.
Tout va bien !
https://tuto-cmsimple.reseauk.info
https://tuto-cmsimple.reseauk.info
Re: Space in H1 when the title is personalized
Hello
Originally, it seems like it was for Facebook who didn't like the ":" as a separator. I use the "-" without worry.
If we use some of the 2021 Templates, we must remember to change in the template file /templatefuncs/scripts/slimmenu.php
by
Originally, it seems like it was for Facebook who didn't like the ":" as a separator. I use the "-" without worry.
If we use some of the 2021 Templates, we must remember to change in the template file /templatefuncs/scripts/slimmenu.php
Code: Select all
$t.='<a href="?' . str_replace($cf['uri']['seperator'] . uenc($h[$ta[$i]]),'___',$u[$ta[$i]]) . '' . uenc(str_replace(' ','_',$slimmenuUriArray[$ta[$i]])) . '">';
Code: Select all
$t.='<a href="?' . str_replace($cf['uri']['seperator'] . uenc($h[$ta[$i]]),$cf['uri']['seperator'],$u[$ta[$i]]) . '' . str_replace(' ',$cf['uri']['seperator'],$slimmenuUriArray[$ta[$i]]) . '">';