Forum Replies Created
-
Thanks Varun,
I will give it a go.
Dennis
OK, no replies as of yet but some progress to report:
I abandoned the idea of making minor style customizations in my WS child theme’s style.css because of the inconsistent results I was getting (see my previous post). Instead, after more hours scouring of the internet, I found a different approach which is to setup folders under my child theme folders like so:
…/wp-content/themes/mytheme/buddypress/css
I then created a new file named buddypress.css in the new /css folder, put in a couple of css entries and voila! – it didn’t work. Determined to get this working, I then spent a few more hours of scoouring and through trial and error and finally came up with the following which does work for me:
1) setup the above mentioned folder structure under the child WP theme
2) copy buddypress.css from the core buddy press css folder under the chosen template (e.g. nouveau) to the new css folder
3) rename the new buddypress.css to “buddypress.min.css” (even though it is not “minified”)
4) changes made to the new buddypress.min.css now take effect (hoorah!)Although this approach seems to work, it does raise several questions:
A) since the custom version of the css file is not “minified”, does this not defeat the purpose of minifying css files in the first place (i.e. presumably performance improvements)?
B) I would have hoped that the custom css file would only need to contain deviations from the theme’s css – however this does not seem to be the case. It appears that the entire file needs to be copied. The concern here is that when buddypress is upgraded, there may be css changes in the upgrade that are now “masked” by the custom css file which contains the older version of the styling (in cases where no modifications were made) – this seems a bit “messy” to me
C) I guess my main question really is whether the above approach which I finally settled on is valid and is the best available approach.
Sorry for the lengthy post, but I am seeking clarity on this so that I end up with a good long term solution.
Dennis