Hey @popiah,
I’m not sure what you’re trying to achieve here. The official way to setup a transparent bar to colored sticky bar is:
- Create a transparent bar
- Duplicate the transparent bar
- Set the background of the duplicated bar to a solid color then set it to Sticky
- To set the delay, increase the Trigger Offset
Here’s a video recording of the setup:
Another way is setting a background using CSS. Please bear in mind though that what I will show you is only a guide and issues arising from the use of it and further improvements would be outside the scope of our support.
The CSS given in the other thread might not work for you because it was for another user’s specific setup.
I’d recommend you add a class to your Bar so you could target the bar in CSS. Then, add this code to your Header CSS. Set the bar’s background to transparent and make it sticky.
.sticky-color {
transition: background-color 1s;
}
.sticky-color.x-bar-fixed {
background-color: yellow;
transition: background-color 4s;
}
Here’s a recording to show you that it works.
If the CSS approach doesn’t work on your end, you can message a user through our Peer to Peer forum or hire a developer to investigate the issue in your site. If you want, we do have an in-house custom development team that offer paid services, who may be able to assist. They can be contacted at pinnacle@theme.co.
Thank you for your understanding.