Okay
  Public Ticket #2006078
Background
Closed

Comments

  • Maël started the conversation

    Hello,

    I have a question. I want to change the background color in dark and light modus (dark to anthracite, light to grey).

    I went to the theme editor, then to scripts.js (js/scripts.js) and on the line 385 I found the background color option and changed the different HEX Codes like below but nothing changed on the desktop website, only on mobile.

    $("html,body").animate({scrollTop: 0}, 1);

    if ($("#page-content").hasClass("light-content")) { $("main, nav").css('background-color', '#DE4545'); $('#magic-cursor').addClass('light-content'); if( $('#hero').length > 0 ){  if( $('#hero').hasClass("has-image")) {  $("header").css('background-color', 'transparent'); } else { $("header").css('background-color', '#DE4545'); } } } else { $("main").css('background-color', '#FCFCFC'); $("nav").css('background-color', '#0f1010'); $('#magic-cursor').removeClass('light-content'); if( $('#hero').hasClass("has-image")) {  $("header").css('background-color', 'transparent'); } else { $("header").css('background-color', '#FCFCFC'); } }

    Is there any other solution for this problem ?

    Greetings

  •  1,974
    Support replied

    Hello Maël,

    if it's possible to provide your site url with the modifications. Also, don't forget to hard refresh the page (Ctrl+F5) when you modify scripts.js

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Maël replied

    Hello,

    Thank you for the help. It know works, I forgot to refresh the page with Ctrl+F5!

    Thx