How do I prevent the Divi theme from removing the et-fixed-header css class in the id=”main-header”?
-
Hi, I am using Divi theme and I am using jQuery addClass() function to insert the et-fixed-header into the id=’main-header’. The code is already working but the Divi theme keeps on removing the et-fixed-header so how to stay it there in the id=’main-header’?
Here is the visual view of the problem… just open the link.
https://drive.google.com/file/d/1GsdfPhaVccaw4JKT5B6ts7UjeG7MZAVR/view?usp=sharingHere’s my jQuery code:
jQuery(function($){
$(‘#main-header’).addClass(‘et-fixed-header’);
}); -
Hi there,
Seems like your issue is related to a site that is using the WordPress.org software, which is hosted outside WordPress.com
This forum only supports the sites hosted on WordPress.com. Please post your question on the WordPress.org support forum: https://wordpress.org/support/topic-tag/divi-theme/
Both(WordPress.com and WordPress.org) are different products. You can find out the differences between them here: https://en.support.wordpress.com/com-vs-org/
You’ll need a free WordPress.org account to post – if you don’t already have one, you can register here:
https://wordpress.org/support/register.php
Thank you.
- The topic ‘How do I prevent the Divi theme from removing the et-fixed-header css class in the id=”main-header”?’ is closed to new replies.