简体   繁体   English

我是否要创建自定义主题或修改创世纪子主题中的CSS?

[英]Do I create a custom theme or modify css in a genesis child theme?

I've just got started with Wordpress and it was suggested to use a child theme so I purchased the Magazine Pro theme. 我刚开始使用Wordpress,建议使用儿童主题,因此我购买了Magazine Pro主题。 This has got the perfect layout for my needs but I find some of the padding is too intense and in particular when I have a leaderboard banner at the top my text for my blog title is wrapping. 这样的布局可以满足我的需求,但是我发现有些填充太密集了,尤其是当我在顶部放置排行榜横幅时,我的博客标题文字会自动换行。

I want to reduce my title text and reduce the padding. 我想减少标题文字并减少填充。 I know how to do that, I've got plenty of experience in front end dev but I just don't know if I should create a child theme (or grandchild theme) based off Magazine Pro or whether I should modify the css file directly in my Magazine Pro css file? 我知道该怎么做,我在前端开发人员方面有丰富的经验,但我只是不知道是否应该基于Magazine Pro创建子主题(或孙子主题),还是直接修改CSS文件?在我的Magazine Pro CSS文件中? What I'm worried about it overwriting my changes by any updates to the child theme. 我担心它会因子主题的任何更新而覆盖我的更改。

What's the best course of action here, I'm really keen to get cracking on some content but my site looks a bit crap with the header text wrapping. 最好的做法是什么,我真的很想破解一些内容,但是我的网站看起来有点头文字换行。

I would suggest you keep the original and create a child. 我建议您保留原件并创建一个孩子。 This way if you make some mistakes you can then take the original code and correct them. 这样,如果您犯了一些错误,则可以采用原始代码并进行更正。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM