Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. hi
  2. Please define that cta module a class: mycta1
  3.  
  4.  
  5. Then add this css in the custom css section in the theme options:
  6.  
  7. .mycta1 {
  8. background-image: url('http://gds.satenirn.beget.tech/wp-content/uploads/2017/11/8realtynew.jpg') !important;
  9. background-size: 100% auto !important;
  10. }
  11. .mycta1 > div {
  12. opacity: 0;
  13. }
  14. .mycta1.clicked > div {
  15. opacity: 1;
  16. }
  17. .mycta1.clicked {
  18. background-image: none !important;
  19. }
  20.  
  21.  
  22. Then go to admin > divi > theme options > integration
  23.  
  24. Look for <head> section, add this code found in this url there:
  25.  
  26. <script type="text/javascript">
  27. jQuery(document).ready(function(){
  28. jQuery('.mycta1').click(function(){
  29. jQuery('mycta1.clicked').removeClass('clicked');
  30. jQuery(this).addClass('clicked');
  31. });
  32. });
  33. </script>
  34.  
  35. Let us know how it goes.
  36. Thanks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement