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
<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
I cleared both caches but the result is the same. hmmm... what is wrong here?
Post your template code and I'll dig through it.
This is the code from the theme folder.
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.
Showed me a bunch of codes, what does it mean? Supposed to be a web page?
Post what you see.
Is this what you mean?
Try it like this,
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 $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" />
Wow, still not updating. Been trying the whole day... is it something wrong with the css or html?
Can you post the dev link, so that I can have a quick look?
`JD
`JD
What is dev link, sorry
this?http://fivestones-vintage.com/accessories...
this?http://fivestones-vintage.com/accessories...
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
/themes/ five_stones_vintage/style_onsite.css
probably should be
/themes/five_stones_vintage/style_onsite.css
Let me know if that works.
JD
Oh dear, is it possible just to delete the space? Will it affect the site, seems to project an error
Alright, in order for c5 to proccess the stylesheet it has to be called like so:
notice the getstylesheet
<link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getStyleSheet('main.css')?>" />
notice the getstylesheet
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.
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?
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)?
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)?
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
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?
Or
The theme that you altering is not activated?
I can do it now, the problem is we cannot use getThemePath as documented
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....
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....
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.
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
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
I'm having problems getting the saved theme customizations to actually show up also.
Did you ever figure out how to make the changes update?
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...
Most browsers will refresh their cache when you press Ctrl+F5. And be sure to clear c5's cache from the dashboard as well.