简体   繁体   中英

Changing WordPress Theme Bootstrap without editing the php

I have done most of my theme customisations by custom.css . Except I want to change a Bootstrap component from col-md-8 to col-md-12 in the theme php.

Currently I have just edited the necessary php in the theme, but I might lose these changes on a theme update. What is the simplest way to do this? I'm hoping I can do it by CSS?

Don't do it via CSS.

You will want to create a child theme

I'd also move your CSS to the child theme as well. From their you can edit the theme file.

Be sure to make sure you manually merge any changes to that file you edited into the child theme when you update the main theme.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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