- This topic has 4 replies, 3 voices, and was last updated 6 years, 1 month ago by Leo.
October 10, 2017 at 11:41 am #400826Gareth
Just curious as to what is generally considered the best approach when needing to make PHP and CSS changes to the GP child theme.
Should I make changes in the functions.php and style.css files within the child theme or is it generally considered the better practise to use a plugin and GPP hooks that allow these things to be added via the WordPress admin area.
To clarify, GP or (GPP) is my first committed move towards using a theme with the customiser to handle the look and feel of a site. I have been building and developing themes for years but am trying to pivot my approach slightly to use Beaver Builder and GPP as a kind of foundation for some of my freelance projects.
Maybe if someone could provide guidance on the following relatively simple query this would help me get into the right frame of mind here.
Instead of the default footer in GPP I want to have 3 columns that stack on mobile with the text centre aligned and then split into the 3 columns side by side at a tablet level breakpoint.
I am considering writing my own footer.php file for this in the child theme along with the relevant CSS.
There are also hooks in GPP that I can use which I also feel are a perfectly relevant solution here.
As someone that doesn’t have a workflow outside of coding things within the theme itself what would generally be considered the best approach here?
Thanks in advance.October 10, 2017 at 11:03 pm #401066LeoStaffCustomer Support
If you are already using child theme then Simple CSS and Code Snippets shouldn’t be necessary:
Depending on what kind of site you are trying to create and how comfortable you are with HTML and CSS, I would highly recommend starting without a page builder first 🙂
These couple articles might be a good starting point:
As for custom footer layout, GP hooks and the columns article linked above is the way to go.
Let me know if this helps 🙂October 11, 2017 at 12:44 am #401121Paul
I would second the advice to try starting without a page builder – between the sections add-on and the underlying Unsemantic grid, I don’t think a page builder is necessary. Just adding a custom class to a section with the corresponding css in a child theme would be my most common route for something a page builder would be used for.October 12, 2017 at 1:57 pm #402227Gareth
Hi Leo and Paul,
Thanks for getting the conversation started.
Regarding the page builder, I am already committed to exploring that avenue since I bought a paid version of Beaver Builder to use in conjunction with GPP. Having said that I am as keen to explore what I can do with GPP on it’s own as I am with using it along with BB. So while I had never intended to look at “sections” and have had it turned off since starting with GPP I am going to look at that in more detail.
If I am being honest I bought BB first and grabbed GPP more as an afterthought since it gets mentioned a lot in BB circles but now that I have been using it the last few days I am blown away by all it can do.
With regards to HTML and CSS I am beyond comfortable. My interest is in seeing how much of this work I can do through the theme rather than through coding.
Overall my aim is to try and speed up the development of my websites using GPP and/or BB. It’s hard to know where to start when you have had a particular way of working for years but I do think it’s time for a change for me. lol
Thanks again.October 12, 2017 at 5:47 pm #402308LeoStaffCustomer Support
- You must be logged in to reply to this topic.