+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / Changing Theme Image

Changing Theme Image

10 posts, 0 answered
  1. John S.
    John S. avatar
    126 posts
    Registered:
    09 Aug 2004
    03 Nov 2011
    Link to this post
    Hello,

    I have a theme that is working; however, if I change an image in the theme I seem to have to go back into the Settings and resave the theme before the change works. Is this how it is supposed to work?

    Thanks,
    John
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    07 Nov 2011
    Link to this post
    Hello John S.,

    You don't need to register your theme after every change. Did you restart your application? It is possible that this behavior occurs because the content of your project gets cached. Try cleaning the cache of your browser and see if the issue reproduces again.

    Best wishes,
    Jen Peleva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. John S.
    John S. avatar
    126 posts
    Registered:
    09 Aug 2004
    10 Dec 2011
    Link to this post
    Hello,

    I am still having problems with this (just getting back to the project). It is really odd and I feel I must be overlooking something.

    An example, If I have a background image ,main_background.jpg, and if I make a change to that image it does not show up. If I delete the image and then put it back it never loads either; however, if I change the name in the css file and change the name of the file to match it works.

    I have tried 
    url('./Images/main_background.jpg');
    url('Images/main_background.jpg');
    url(Images/main_background.jpg);
    url(./Images/main_background.jpg);

    Also, if it matters, I have a source Photoshop file I edit and export out as the .jpg.

    Clearing the cache has no effect. The only thing I seem to be able to do to make this work is change the file name.

    Does anyone have any suggestions? I feel like this is something that has to be simple.

    Thanks,
    John S.


  4. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    11 Dec 2011
    Link to this post
    John,

    Does your theme follow this file structure?
  5. John S.
    John S. avatar
    126 posts
    Registered:
    09 Aug 2004
    12 Dec 2011
    Link to this post
    Hi Tim,

    Thanks for the reply. Yes, it does follow the structure shown.

    John
  6. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    12 Dec 2011
    Link to this post
    John,

    Have you tried it like this?

    .yourclass { background: url(../Images/main_background.png) no-repeat top left; }

    That's a line from a CSS file I'm using in one of my themes. I've changed it to look a bit more like an example though...
  7. John S.
    John S. avatar
    126 posts
    Registered:
    09 Aug 2004
    12 Dec 2011
    Link to this post
    Tim,

    I had a problem with what you sent on the last post; however, everything now seems to be working as expected the way I had it.

    I have no idea what is up with this....if it reappears I will be back.

    Thanks,
    John S
  8. John S.
    John S. avatar
    126 posts
    Registered:
    09 Aug 2004
    13 Dec 2011
    Link to this post
    The problem reappeared about 10 minutes after I said it went away.

    If anyone has any other suggestions I would love to hear them.
  9. Tim
    Tim avatar
    258 posts
    Registered:
    22 Jun 2011
    13 Dec 2011
    Link to this post
    John,

    If you're using the recommended structure and your css is written like the example I posted, you shouldn't be having issues.

    Is the page live? Can you provide a link?
  10. John S.
    John S. avatar
    126 posts
    Registered:
    09 Aug 2004
    14 Dec 2011
    Link to this post
    Tim,

    Thanks for the response. For some reason I am not getting updates on this thread by email.

    The page is not live. I think I have to have something set up wrong. I am going to start from scratch and see what happens.

    John S
10 posts, 0 answered