• Resolved hongpong

    (@hongpong)


    Hi all,

    I was looking at changing the value of ‘hestia header gradient color’ by hand and it seemed defined in assets/js/admin/customizer.js (around line 774). So i tried to set some values by hand in there but my changes were not picked up. When does this JS file get evaluated and how do its results get saved? (like i tried adding console.log statements and nothing happened, my custom value was not saved and so on).

    I was able to find my answer for changing the gradient elsewhere which I think will be sufficient for now but I would like to understand better how this part of the theme code works.

    Answer was here for a quick change:
    https://www.ads-software.com/support/topic/color-header-in-product-page/
    Customize > Header Options > Header Settings. There you’ll be able to change the color at “Header Gradient” option.

    Thanks!

Viewing 1 replies (of 1 total)
  • Hi there,

    Thank you for using Hestia! The function itself is not defined in the customizer.js but as you can change color using customizer – it’s used to pass the color that you set.

    If you are interested in all the functions that theme has my recommendation would be to download the whole theme and search for functions in it using a text editor (sublime for example) in all the files so you will find functions that you are interested in.

Viewing 1 replies (of 1 total)
  • The topic ‘How does customizer.js work?’ is closed to new replies.