Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Themes and Templates
    In reply to: CSS Updating

    I had a similar problem with updating the style sheet and found an inelegant solution. What happened was I could upload changes to php/html files into the theme folder and see the changes straight away, except for the style sheet, it would not update with a new upload. I logged into word press and checked it through the theme editor and the updates where there but when I went to view the site in my browser (clearing cache all the time) and viewed the style sheet, no updates. What I ended up doing was renaming the stylesheet and going into the header file and hard coding the style sheet link rather than use the php method. The path was exactly the same as what would get written out by php when you view the page source in the browser except with the new file name at the end. I then commented out the php style sheet link, uploaded it with the renamed style sheet and it worked a treat. Now everytime I upload a modified style sheet it appears instantly. I know this is not a great solution if you want to change themes regularly but it worked for me. I did notice that the image folder I was using in my css which was at the root level now seemed instead to go to the images folder in the theme folder, I can’t confirm this to be exactly the case but watch out for it. Hope this is of some help.

    I had a similar problem with updating the style sheet and found an inelegant solution. What happened was I could upload changes to php/html files into the theme folder and see the changes straight away, except for the style sheet, it would not update with a new upload. I logged into word press and checked it through the theme editor and the updates where there but when I went to site in my browser (clearing cache all the time) and viewed the style sheet, no updates. What I ended up doing was renaming the stylesheet and going into the header file and hard coding the style sheet link rather than use the php method. The path was exactly the same as what would get written out by php when you view the page source in the browser except with the new file name at the end. I then commented out the php style sheet link, uploaded it with the renamed style sheet and it worked a treat. Now everytime I upload a modified style sheet it appears instantly. I know this is not a great solution if you want to change themes regularly but it worked for me. I did notice that the image folder I was using in my css which was at the root level now seemed instead to go to the images folder in the theme folder, I can’t confirm this to be exactly the case but watch out for it. Hope this is of some help.

    I had a similar problem with updating the style sheet and found an inelegant solution. What happened was I could upload changes to php/html files into the theme folder and see the changes straight away, except for the style sheet, it would not update with a new upload. I logged into word press and checked it through the theme editor and the updates where there but when I went to site in my browser (clearing cache all the time) and viewed the style sheet, no updates. What I ended up doing was renaming the stylesheet and going into the header file and hard coding the style sheet link rather than use the php method. The path was exactly the same as what would get written out by php when you view the page source in the browser except with the new file name at the end. I then commented out the php style sheet link, uploaded it with the renamed style sheet and it worked a treat. Now everytime I upload a modified style sheet it appears instantly. I know this is not a great solution if you want to change themes regularly but it worked for me. I did notice that the image folder I was using in my css which was at the root level now seemed instead to go to the images folder in the theme folder, I can’t confirm this to be exactly the case but watch out for it. Hope this is of some help.

Viewing 3 replies - 1 through 3 (of 3 total)