Hello Everyone ! Is it possible to change the logo...
# suitecommerce
h
Hello Everyone ! Is it possible to change the logo of the SCA website on clicking a specific tab? I have 5 navigations in my header , I want logo A on the 4 tabs , but when i click on the 5th tab , i want to change the header logo to Logo B . Any help in this regard would be appreciated
s
yes it can be done, what's the fifth tab is it category specific?
h
Yes it is a SC blog extension
And how we can do it?
like this
s
you need to fetch the code and make the necessary changes when specifically this category is been cicked/triggered we can change the logo src
h
I have already done that. But I am unable to catch the trigger because the header is rendered only one time
s
If that's your only problem, you can just call render() on the header module after changing the data
h
Where do i have to call the render method? I am working in the Theme dev tools and i can't see any JS file where i can add the functionality? Do i have to switch to extension developer tools? If yes then I can't see the Header module in it.
s
Ah, well, if you're doing this in the themes then no. I am a little surprised you were able to conditionally change the header logo using themes only. Normally such a thing would require JavaScript and thus an extension
h
I got your point , But when you switch to extension developer tools , you get the code of extensions , not the modules that are the part of theme like Header. I am unable to see the Header.View.js file where i can extend the functionality