Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hi
- Please define that cta module a class: mycta1
- Then add this css in the custom css section in the theme options:
- .mycta1 {
- background-image: url('http://gds.satenirn.beget.tech/wp-content/uploads/2017/11/8realtynew.jpg') !important;
- background-size: 100% auto !important;
- }
- .mycta1 > div {
- opacity: 0;
- }
- .mycta1.clicked > div {
- opacity: 1;
- }
- .mycta1.clicked {
- background-image: none !important;
- }
- Then go to admin > divi > theme options > integration
- Look for <head> section, add this code found in this url there:
- <script type="text/javascript">
- jQuery(document).ready(function(){
- jQuery('.mycta1').click(function(){
- jQuery('mycta1.clicked').removeClass('clicked');
- jQuery(this).addClass('clicked');
- });
- });
- </script>
- Let us know how it goes.
- Thanks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement