Tagged: special header
-
AuthorPosts
-
July 26, 2017 at 2:42 pm #830171
Hi,
when I add a special header with modern style, the title
L’international est au coeur des trois grandes missions de l’IMT
is changed to
L‘international est au coeur des trois grandes missions de l’IMT
The apostrophes are changed and it’s not good french… so I don’t want this automatic character replacement.An example of the problem here : https://www.imt.fr/formation/international/
Could you fix it ?
Best regards,
Olivier.July 30, 2017 at 1:48 am #831642Hey Oli,
Try using this code in your text in place of the apostrophes:'
or this one:
’
Best regards,
MikeJuly 31, 2017 at 3:15 pm #832171Hello,
it works but then the title is empty in the advanced editor (cf. screenshot : https://partage.mines-telecom.fr/index.php/s/CALy9n5Xd6Jwmgc) and in the modal box when you edit it (cf. screenshot : https://partage.mines-telecom.fr/index.php/s/eBXwMiW2wWENA2t).
The title is displayed in the page but everything’s empty in the admin.Moreover, it’s not tricky to use html special characters.
Could you fix it in the next release on Enfold ?
Best regards
August 4, 2017 at 5:41 am #834157Hi,
In the special heading element, please add the span tag with the “apos” class attribute. Example.
L<span class="apos"></span>international est au coeur des trois grandes missions de l<span class="apos"></span>IMT
And then use the following script in the functions.php file to add the apostrophe symbol inside the span tag.
// add apostrophe function ava_custom_script_mod(){ ?> <script> (function($){ function decodeEntities(encodedString) { var textArea = document.createElement('textarea'); textArea.innerHTML = encodedString; return textArea.value; } $('.apos').text(decodeEntities(''')); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_mod');
Best regards,
IsmaelAugust 4, 2017 at 11:16 am #834284Hi,
why changing the character after with Javascript code ? In the H1, the apostrophe is not modified (see https://www.imt.fr/formation/international/) but it is in the H2.
Is there no way to avoid the replacement of the character ’ (rsquo) to the character ‘ (lsquo) ?Best regards,
Olivier.- This reply was modified 7 years, 3 months ago by Oli.
August 8, 2017 at 9:57 pm #836061Hi,
Are you using a different font for h2?
Best regards,
BasilisAugust 15, 2017 at 10:12 pm #839600Hi,
no, it’s the default font.
Best regards,
Olivier.August 16, 2017 at 11:56 am #839835Hi Olivier,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaAugust 19, 2017 at 4:40 pm #841299Hello,
I’m curently on vacation, I’m back the 09-04, and I’ll give you an admin access.
Best regards,
Olivier.August 19, 2017 at 4:52 pm #841303September 5, 2017 at 3:40 pm #848163Hi,
I’m back, tell me when you want the temporary admin access and I’ll open it ?
Best regards,
Olivier.September 7, 2017 at 2:48 am #848909Hi,
Glad you are back,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.Best regards,
MikeSeptember 7, 2017 at 10:53 am #849016Hi,
the credentials are in the private section.
A page with the bug : https://www.imt.fr/formation/international/
Best regards,
Olivier.September 9, 2017 at 5:00 am #849819Hi,
why changing the character after with Javascript code ? In the H1, the apostrophe is not modified (see https://www.imt.fr/formation/international/) but it is in the H2.
We opted to provide a solution this way so that you don’t have to modify the core theme files. Please try it again.
// https://kriesi.at/support/topic/automatic-apostrophe-replacement-in-a-special-header/#post-834157
Best regards,
IsmaelSeptember 11, 2017 at 9:29 am #850391Hi,
I understand but :
1) I have users that are not advanced html coders and it’s not easy to add a span tag for having an apostrophe
2) If a user deactivate Javascript in its browser, it won’t work
3) The less important and last reason, there’s a replacement and then, the solution made the inverse replacement ;)Is there any other solution ?
Would this or another solution be added in the core version for the next release ?Best regards,
Olivier.September 13, 2017 at 4:31 am #851328Hi,
Would this or another solution be added in the core version for the next release ?
I’m sorry but it’s not going to be included in the latest patch. The apostrophes are converted because they tend to break the shortcodes thus breaking the whole page. Another workaround is to replace the special heading element with a code block.
Best regards,
IsmaelSeptember 20, 2017 at 3:17 pm #854388Hi,
OK, I’ll add your solution.
In future releases, is the conversion of apostrophes could be tuned (for example by using double quotes for shortcodes attribute’s values) ?
I give you this example because when we add a button shortcode with a text with an apostrophe (for example S’inscrire), we need to replace simple quotes by double quotes.Thanks your help !
Best regards,
Olivier.September 21, 2017 at 12:14 pm #854780Hi,
I give you this example because when we add a button shortcode with a text with an apostrophe (for example S’inscrire), we need to replace simple quotes by double quotes.
This is the same case as the special heading element. We’ll forward the issue to Kriesi.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.