Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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.

    #831642

    Hey Oli,
    Try using this code in your text in place of the apostrophes:

    '

    or this one:

    ’

    Best regards,
    Mike

    #832171

    Hello,

    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

    #834157

    Hi,

    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('&apos;'));
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');
    

    Best regards,
    Ismael

    #834284

    Hi,
    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 4 months, 1 week ago by  Oli.
    #836061

    Hi,

    Are you using a different font for h2?

    Best regards,
    Basilis

    #839600

    Hi,

    no, it’s the default font.

    Best regards,
    Olivier.

    #839835

    Hi 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,
    Victoria

    #841299

    Hello,

    I’m curently on vacation, I’m back the 09-04, and I’ll give you an admin access.

    Best regards,
    Olivier.

    #841303

    Hi,
    Thank you, we will look for your reply then.

    Best regards,
    Mike

    #848163

    Hi,
    I’m back, tell me when you want the temporary admin access and I’ll open it ?
    Best regards,
    Olivier.

    #848909

    Hi,
    Glad you are back,
    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. 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 ).
    5. Click ” Submit “.
    6. 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,
    Mike

    #849016

    Hi,

    the credentials are in the private section.

    A page with the bug : https://www.imt.fr/formation/international/

    Best regards,
    Olivier.

    #849819

    Hi,

    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/ (Purchase code hidden if logged out) -special-header/#post-834157

    Best regards,
    Ismael

    #850391

    Hi,

    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.

    #851328

    Hi,

    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,
    Ismael

    #854388

    Hi,

    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.

    #854780

    Hi,

    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

Viewing 18 posts - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.