Thread Starter
sanla
(@sanla)
Hi,
In the functions.php I found this line of the theme author:
“If you prefer to use a different grid system, simply replace this and perform a find/replace in the php for the relevant styles. I’m nice like that!”
From this line, I assume that with “in the php” you mean all the template files that come with the parent theme (and are used by the child theme).
I also deregistered the grid.css.
But I’m not complete sure about the whole replacement. I haven’t used all template files. But are there any consequences, worth mentioning, for the layout because of the current media queries (breakpoints) in the parent’s style.css?
Thank you.
If you want to change the grid, not only will you have to dequeue the css, you’re going to have to change every template file that uses the grid classes, and most likely, change some of the css as well.
If you specifically want to use zurb foundation grid, then you’d be better off just using a theme that is already built with it.
Thread Starter
sanla
(@sanla)
Hi Anthony,
Sorry for the delay, but thank you for your answer.
What I understand is: I have to replace ALL CSS related to the grid IN the PARENT theme? (then I use the adjusted template in the child theme).
PS. I want to stick with your theme Quark 😉
Foundation was an option I wanted to try for the “ready to go” components / page elements and this framework comes with a grid so I thought use this as well.
The first thing you’ll need to do is to change all the (.php) template files that have any reference to my grid. Then you’ll also need to replace any references to my grid, in the css files as well. Although with that said, there wont be that many references to the grid in my css files anyway. The more difficult part is changing all the php files.
While it’s certainly possible to do, as I said above, it’s going to be considerably easier to simply use a theme that’s already built on Zurb. There’s a number of well built starter themes based on Zurb Foundation, such as FoundationPress or JointsWP.
Thread Starter
sanla
(@sanla)
Hi Anthony,
Thanks, now the impact is more clear to me!
Also thanks for mentioning the themes based on Zurb Foundation. I’ve looked at these before…. Well, I still think your theme, including the grid, is my favorite starter.
So I will think about it a bit more.
Sandra
No probs. And glad you like my theme so much 🙂