Archived topic
theme update header code changes
7 replies · Started by Lauren on February 14, 2022
Hi!
We use generatepress for several of our clients' sites and love it! I recently noticed that with the new theme update, the way that the header is coded has changed significantly. I have written extensive custom child theme styles for the old version of the header code, which I will need to adjust to accomodate the update. So my question is: will the new code be in place for some time? It will take some time for me to make the adjustments, so I don't want to do it if it will be changing again soon.
Thanks!
Lauren
Hi Lauren,
I don't recall we made changes to header lately.
Here're the changelogs for each update just for your reference.
https://generatepress.com/category/development/
Let me know if I miss anything.
Hi Ying,
Thank you for your response. I do see that the site where the code is different is actually using the same version of the theme as the other site, so I apologize for the misinformation! However, maybe you can help me understand the difference. Between the 2 sites, the options in the "customizer" are slightly different. In one version, under general options, I see an option for structure where I can choose between floats and flexbox. In the other version of customizer, that option is not available. If I update the theme, will I lose the ability to use the floats option? It seems that the site without that option defaults to flexbox.
Thanks!
, I see an option for structure where I can choose between floats and flexbox. In the other version of customizer, that option is not available
No worries :)
Yes, GP has switched from floatsto flexboxfor a long time now. Flexbox has the better ability to achieve most layouts, it's just the way to go. You might've also noticed more and more plugins including WordPress itself is switching to flexboxgradually.
As many users including you are still using floats, we implanted this switch option in the customizer.
But for new installs, Flexboxwill be the default setting.
I would suggest to switch to flexbox ASAP, there might be more incompatibilities coming along the road with floats.
Ok thank you for the feedback! Will I lose the option to use floats if I update the theme?
I don't think so.
If you don't switch to flexboxby yourself, I think the option will still be there.
But I'll suggest to backup your site just in case.
Ok great, thank you so much!
You are welcome :)