× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Live website doesn't update when I change code
#1
Hi there, 

Firstly I would like to say what an amazing product you have. However, I am experiencing some issues. Whenever I update any code e.g I remeoved <a class="" href="<?=$us_url_root?>"><img class="img-responsive" src="<?=$us_url_root?>users/images/logo.png" alt="" /></a> from navigation.php and uploaded it to remove the logo entirely the code that has been uploaded in the CPannel editor shows this line gone but the live site still has a logo and shows the reference to logo.png as still being there.

Any help would be greatly appreciated.

Thanks
  Reply
#2
It's your browser cache. Try hitting shift-f5. Browsers seem to think that logos never change and leave them there forever.
  Reply
#3
It may be Control F5 (thats the combination I use)
  Reply
#4
Hello!

I, too, am having this issue. For example css code from custom.css doesn't apply to the element at all, even though I can see that the custom.css is being included in the document, and the element in question has the appropriate class-name. Also, things like adding a id="element_id" to the navbar doesn't apply either. (Even though it is there if I look at the code in my editor.)

Any inputs on this?

Thanks!

Edit: Forgot to mention that I have cleared cookies/cache a couple of times and it doesn't help.
  Reply
#5
This is a CSS issue-and not a UserSpice issue. You more than likely are changing attributes of an element that are already defined, or defined after the custom css, and you need to mark those important to override the other. Unfortunately, Dan and I both are not CSS gurus so won't be able to aid much help here.
  Reply
#6
(11-23-2018, 01:09 PM)Brandin Wrote: This is a CSS issue-and not a UserSpice issue. You more than likely are changing attributes of an element that are already defined, or defined after the custom css, and you need to mark those important to override the other. Unfortunately, Dan and I both are not CSS gurus so won't be able to aid much help here.

I have tried marking them as !important as well, so that's not the issue.

1: My css has been added to custom.css (both in users/css and usersc/css, even though that shouldn't be necessary.)
2: I have made sure that custom.css is set in the CSS Settings (Admin Dashboard).
3: I have made sure the css code is correct, and the element has the correct class-name.
4: I can clearly see that the custom.css document is linked, when I view the source-code of the page.
5: I can clearly see that the code isn't beeing overwritten, in the developer-tool. The code is simply not "being loaded", for lack of a better explanation.

At this point I feel like this is indeed a UserSpice issue, but I can't be sure. I am, however, sure that the issue is not css-based.

That was only part of the issue though.

I have tried adding my own id to the navigation div, in users/includes/navigation.php. The part I have added simply will not show up in the source-code, even though I can see the code in my editor. It's like the navigation.php doesn't output anything except the original code.
  Reply
#7
Unfortunately, I can assure you, that on my fresh and existing installs of UserSpice, my users/css/custom.css file is included without making any modifications and changes I enter in here are able to be used elsewhere within the project.

Navigation.php is for file-based nav, the default nav is database driven (which can be checked on the admin dashboard) and this is controlled from database-navigation.php.
  Reply
#8
(11-23-2018, 01:31 PM)Brandin Wrote: Unfortunately, I can assure you, that on my fresh and existing installs of UserSpice, my users/css/custom.css file is included without making any modifications and changes I enter in here are able to be used elsewhere within the project.

Navigation.php is for file-based nav, the default nav is database driven (which can be checked on the admin dashboard) and this is controlled from database-navigation.php.

That solved the navigation problem atleast, thanks!
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)