Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1232585

    Dear Enfold Support Staff, hi!

    I created in my website some music playlist and, as you can see in the picture, the program automatically include the titles of the tracks between quotation marks. I need not to use the quotation marks, I looked at all the options but i didn’t find a way to eliminate the quotation marks.
    I include the picture of the webpage and the link.
    Could you please help me? Thank you and best regards!

    Antonio

    Image 2020-07-23 at 1.01.15 PM.png

    #1232590

    can you try this in your child-theme functions.php:

    `add_filter(‘gettext_with_context’, function($translated, $text, $context, $domain){
    if($context = ‘playlist item title’ && $text == ‘“%s”’) $translated = “%s”;
    return $translated;
    }, 10, 4);`

    that was transfered to bad signs – please copy&paste from here:
    https://kriesi.at/support/topic/is-it-possible-to-disable-quotation-marks-in-the-track-name-of-a-playlist/#post-1232704

    #1232595

    Hello, dear Guenni007,

    unfortunately I didn’t install the child-theme. I tried, but many of the pages of the site changed and it was a huge work to work again on the pages, so I uninstalled it. Is there a way to solve the problem without installing the child theme?

    Thank you very much and best regards!

    Antonio

    #1232601

    you can place it in functions.php of your parent theme – but then it will be lost on updating:
    see here the place where it is best placed:

    https://kriesi.at/support/topic/edit-the-logo-link/#post-1231456

    #1232609

    Hi Guenni007,
    thank you so much. In the while I followed your suggestion, and this time I succeeded to install che child theme without any change in the website, everything is working great.

    So now I’m ready to insert the lines that you gave me at the beginning.
    But since it is the first time, I don’t even know where to paste these lines.
    Could you please describe me exactly where i can find the place to paste them?

    Thank you so much! :-)

    Best regards,

    Antonio

    #1232702

    Go to your dashboard – appearance – theme editor : on the right side there is a list of existing child-theme files:
    On default there are only : style.css and functions.php
    That is the file we need : click on the functions.php
    On default there is only :

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */

    Under this you can insert ( copy&paste) my code above. Save it.

    But Sometimes the php files are secured by some security plugins or via wp-config.php etc. pp – then you can not edit this way or more : you do not see the theme editor.

    If there is activated Merging ( Enfold-Child – Performance – css and js merging.) or you use caching plugins. you had to refresh all these things first ( even the browser cache shows an own version of the frontend.

    that is the reason why i always deactivate those settings or plugins till you go on public with your page. First the layout and styling – afterwards we can optimize performance things

    #1232703

    Hi Antonio,

    If you have the child theme, the functions.php file is clean, so just add the code after the comment or after

    #1232704

    by the way : it is not a good netiquette to ask similar questions in more then one topic. ;)
    also makes it harder for you to keep on track.

    And i see that boardsoft changes my code automatically to the wrong signs:
    Sorry on that – you had to type in those little snippets:

    Or – you can copy&paste it from here: pastebin

    just for info: it is in WordPress: media.php : lines 2091ff
    and on : line 2105:
    printf( _x( …
    and because that string is used hundred of times the context is important on that translation.

    #1232754

    Hi Guenni007,
    i don’t understand, in which topic did I ask similar questions?
    Or it possible that I sent more than one time the same topic, because this morning when i sent it I received an error message from the website and i tried two or three times to send it (I also changed the title, thinking that I cannot make a new attempt with the same title), always receiving an error message (which said that my message had not been sent)… So I disconnected and tried again, this time successfully. Maybe all these attempts produced many copies of the topic? In this case it was not by purpose… I’m sorry for that! :-)

    Now I tried to paste your code and it works perfectly!! Thank you so much!!
    Thanks to you and to Victoria for your help! :-)
    We can close the topic (and hopefully to cancel the others that I produced without willing it!).

    Have a nice weekend!

    Antonio

    #1232763

    https://kriesi.at/support/topic/is-it-possible-to-disable-quotation-marks-in-the-track-name-of-a-playlist/

    It’s not dramatically bad, but sometimes it takes a lot of effort to answer, and then you have to see that the question may already have been answered sufficiently.

    #1232777

    I already explained that I did not create more topics by purpose, but because the site was giving error and was not responding….

    #1232778

    So I believed to have send only one question, not one question for each attempt.
    Sorry again! :-)

    #1232790

    Hi,

    Glad @guenni007 and Victoria could help!

    Let us know if you have any other questions or issues & enjoy the rest of your day! :)

    Best regards,
    Yigit

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Is it possible to disable quotation marks in the track name of a playlist?’ is closed to new replies.