Select Page

How to change the currency code for menu items?

Forum Forums Divi Product Support Bonjour – Divi Child Theme How to change the currency code for menu items?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #130
    admin
    Keymaster

    This requires a small bit of change in Javascript.

    To do this, you can either:
    1) Access your Cpanel and open file manager. Browse to the files (check the path of the URL).
    2) Or access the files via FTP.

    File to change
    wp-content/themes/bonjour/js/main.js

    Highlighted in line 5 and line 7, change the currency code $ to desired currency code.
    Line 5 tells Javascript what to look for in your text as the currency code identifier.
    Line 7 prints out the currency code.

    Below is an example of changing from $ to €

    var arr = data.split('€');
    $(this).css('display','flex');
    $(this).html(""+arr[0] + "    €" +arr[1]+ "");

    Easy as that. Feel free to ask anything in this thread relating to currency code changes in Bonjour Divi Child Theme.

    #327547
    Jeremy223
    Participant

    A good report writing approach helps you to write good quality reports. The essay writing sites can get ideas to write the report from some of the popular sites that provide quality report writing help to students.

    #340595
    jsmith65
    Participant

    Behavioral finance is a subfield of behavioral economics, that studies about the influence and biases affect the financial behaviors . The Academic writing guidance by the BookMyEssay experts strictly follows the instructions and guidelines, and provides you the Behavioral finance assignment help at reasonable prices.

    #342139
    Betty06
    Participant

    This is called the developer level problem, you have to go just to a valid website to check variable examples and tricks. Students could also receive dissertation-related essays from Law dissertation writing services for deeper comprehension.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.