Customize theme not updating

Permalink
I inserted
<link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getThemePath()?>/style-onsite.css" /> into my template and

a, a:link, a:visited, a:active
{
/*customize_link*/
color: #08C;
/*customize_link*/
}

into my CSS, I can customised in the theme but when I click save the update does not work. Using custom theme

 
ijessup replied on at Permalink Reply
ijessup
The only thing I can think of is to clear your caches. Cache can be a pain when develop/designing.

Most browsers will refresh their cache when you press Ctrl+F5. And be sure to clear c5's cache from the dashboard as well.
gbjack replied on at Permalink Reply
I cleared both caches but the result is the same. hmmm... what is wrong here?
ijessup replied on at Permalink Reply
ijessup
Post your template code and I'll dig through it.
gbjack replied on at Permalink Reply 1 Attachment
This is the code from the theme folder.
ijessup replied on at Permalink Reply
ijessup
Load up the page in a browser and see if <?=$this->getThemePath()?> is actually printing anything. Some servers don't like <?= and require <?php echo.
gbjack replied on at Permalink Reply
Showed me a bunch of codes, what does it mean? Supposed to be a web page?
ijessup replied on at Permalink Reply
ijessup
Post what you see.
gbjack replied on at Permalink Reply 1 Attachment
Is this what you mean?
johndorsay replied on at Permalink Reply
johndorsay
Try it like this,
<link href="<?php echo $this->getThemePath()?>/style_onsite.css" rel="stylesheet" type="text/css" />


I altered the name of the css file as well as used the full php tags.

As well, make sure that you have this css in the themes/somethemename/style_onsite.css

not in the root css folder.

if you want to place code in the css root folder use
<link href="<?php echo DIR_REL?>/css/style_onsite.css" rel="stylesheet" type="text/css" />
gbjack replied on at Permalink Reply
Wow, still not updating. Been trying the whole day... is it something wrong with the css or html?
johndorsay replied on at Permalink Reply
johndorsay
Can you post the dev link, so that I can have a quick look?
`JD
gbjack replied on at Permalink Reply
What is dev link, sorry
this?http://fivestones-vintage.com/accessories...
johndorsay replied on at Permalink Reply
johndorsay
There is a space for some reason right before five?
/themes/ five_stones_vintage/style_onsite.css

probably should be
/themes/five_stones_vintage/style_onsite.css

Let me know if that works.

JD
gbjack replied on at Permalink Reply
Oh dear, is it possible just to delete the space? Will it affect the site, seems to project an error
Mnkras replied on at Permalink Best Answer Reply
Mnkras
Alright, in order for c5 to proccess the stylesheet it has to be called like so:

<link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getStyleSheet('main.css')?>" />


notice the getstylesheet
gbjack replied on at Permalink Reply
I use <link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getStyleSheet('style_onsite.css')?>" /> as Mnkras suggested and C5 cannot find the style sheet.
gbjack replied on at Permalink Reply
I duplicated my custom theme folder changed the name and reinstall the theme as "five_stones_vintage" without the spacing. Still cannot change link colors from the customized theme, is there a bug there regarding C5?
jordanlev replied on at Permalink Reply
jordanlev
Just a thought -- perhaps the colors need to be the full 6-digit hex, not 3-digit like you have (so #0088CC instead of #08C)?

Other than that, it looks like everything should work. Try clearing your cache again just in case. If it still doesn't work after all this, maybe post your theme code again (now that it's been updated)?
gbjack replied on at Permalink Reply
Mnkras is right. To customise theme need to use <?=$this->getStyleSheet('your_stylesheet.css')?> if we use "getThemePath()" then the customization got no effect. But I tried in the morning and failed but now at link the links finally gets updated. Thanks
johndorsay replied on at Permalink Reply
johndorsay
There must be another style sheet somewhere that is running first and globally declaring anchor styles.

Or

The theme that you altering is not activated?
gbjack replied on at Permalink Reply
I can do it now, the problem is we cannot use getThemePath as documented
Doki replied on at Permalink Reply
Doki
All,

I've recently had the same problem with the preview window not updating in the customize theme section of my C5 CMS. The odd part is that I loaded my custom theme onto a different server and it worked fine. I went back and loaded one of the generic themes on the "old" box (Plain Yougart for you detail loving individuals) and had the same problem with that theme as well, so at least I know it wasn't a code problem.

I did a full cache clearing on my browser the "old" box, but to no avail -- I'm still not getting the updates (although when the Save button is hit, everything works as you would expect).

The odd thing is that one of my coding compatriot I was having inspect my work on the theme had the same problem on the "new" box yesterday, but today when I went to investigate, the "new" box was working fine.

So, my new theory is that its some sort of caching issue unrelated to the browser. I'd investigate further but its only a low level DR here and we have bigger issues to cover in the meantime. I'll let you know what I find when I get a chance to look at this again....
Doki replied on at Permalink Reply
Doki
Just to add a bit more to this, I just built a custom theme for a friend's website and this preview window intermittent issue occurs on his webspace on justhost.com. So now I KNOW its not a browser or host issue.
mainejack replied on at Permalink Reply
Whew!!!!

The discussion is way over the head of a non-psp expert Concrete5 beginner.

I am also having trouble making color changes to the Plain Yogurt theme stick when I return to the editable page.

Can someone suggest how I can customize the color of Plain Yogurt, the default theme, from white to red?

Thanks,

Jack
jbyrd117 replied on at Permalink Reply
I'm having problems getting the saved theme customizations to actually show up also.
clfconcrete replied on at Permalink Reply
Did you ever figure out how to make the changes update?
TeKnoZiz replied on at Permalink Reply
TeKnoZiz
I was having a similar issue when moving a site from one host to another. Couldn't save Custom CSS, and my template wasn't working properly, turned off caches, cleared cache multiple times. Turns out, you have to remove the all the cache files manually by going to the Application -> Files -> Cache folder and deleting everything there. That cleared things right up! Why the Clear Cache command doesn't do that is a little perplexing...