template change css filezilla

Permalink
Hi
I haad download an add-on: featured content slide light and I wanted to change the font family witch is font-family: 'Yanone Kaffeesatz', arial, serif; to Calibri

So I go in my filezilla , then in /packages/c5mix_featured_content_slider/blocks/page_list/templates

Then I copy the featured_content_slide in my desktop then I copy it at the same place under the name of Myy_featured_content_slide then I open it with notepad and I change the css : just the font-family.
Then I click on upload to the new Myy_featured_content_slide and then I choose custom templates and this one on my site
But this doesn't work... It is as if no template is selected

Why?

 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
"then I copy it at the same place under the name of Myy_featured_content_slide", What does it mean?

Rony
joyyy replied on at Permalink Reply
I copy the featured_content_slide in my computer and I copy this file under another name (My_featured_content_slide)and I edit this hen
Then I upload this in fileZilla and I choose on my website for custom your template : My_featured_content
But the problem is that it is as if I have not selected template
bbeng89 replied on at Permalink Reply
bbeng89
Hm, this might not fix your problem, but you'll want to make sure that you put your new custom template in the block override directory here:
/blocks/page_list/templates/my_featured_content_slide


This way it won't be lost when you update your add-on.

Also, have you tried clearing the concrete5 cache? Sometimes that can cause some weird issues.
joyyy replied on at Permalink Reply
I put my new one here:/packages/c5mix_featured_content_slider/blocks/page_list/templates (where the older one is)



How to deal woth the cache?
bbeng89 replied on at Permalink Reply
bbeng89
Yeah, I was saying that when you update that add-on you are going to lose the custom template you made. This is why you need to make sure you put it at the root level. So it should go in
/blocks/page_list/templates/my_featured_content_slide


It will still be available to choose as a custom template.

To clear the cache you just go to Dashboard > System & Settings then under the "Optimization" category click "Clear Cache"
joyyy replied on at Permalink Reply
Can I put it at 2 place?
bbeng89 replied on at Permalink Reply
bbeng89
No, you don't want it to be in both places. I think if you had it in both places it would probably take the one in the /blocks directory, but I'm not sure why you would want to do that. I think it would just be confusing.
joyyy replied on at Permalink Reply
But how do you do if you want to edit a template?And to choose this new one for "custom your templates"? using filezilla?
bbeng89 replied on at Permalink Reply
bbeng89
The process of putting things in the root folders is called "overriding" in concrete5. You might just want to read more about overriding. Check out this how-to:http://www.concrete5.org/documentation/how-tos/developers/change-th...

It is a very important concept in concrete5.

Like I said though, this likely isn't the cause of the problem you are having with the font. Sorry to get the thread off topic, I just wanted to let you know so that you don't get burned by an update down the road.
joyyy replied on at Permalink Reply
Thank you
THe link is so useful because I dont really understand this concept
Thanks a lot
bbeng89 replied on at Permalink Reply
bbeng89
No problem! This link also goes over overrides, and specifically how you can create a custom template:http://www.concrete5.org/documentation/how-tos/designers/custom-blo...

Hopefully those two how-to's will clear up some things for you.

Also, were you ever able to clear out the cache? Did that help at all?
joyyy replied on at Permalink Reply
Im a bit affraid to use my office's databoard and to clear it ....

Thanks for all your links and for your time

The override seems really to be important
bbeng89 replied on at Permalink Reply
bbeng89
Clearing out the system cache really can't hurt anything with the site. It is just something that is used to help speed things up. Most people just disable the cache while they are developing and then turn it back on when they are ready to launch.

Here is a page about the "clear cache" buttonhttp://www.concrete5.org/documentation/using-concrete5/dashboard/sy...

And here is one about turning off the cache:http://www.concrete5.org/documentation/using-concrete5/dashboard/sy...

Good luck!