shanekh
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Modify my themeI did see the “Additional CSS” field. First, it didn’t seem to show up for every element I could select (hard to remember that many iterations back). And second it was very ambiguous as to how it works. As I have been digging around it looks like that adds inline style, which blows my mind. The “style” attribute at one point was “depreciated” (might have been early on in the release of HTML 5), that looks to have changed, but at minimum it is bad coding practice to use inline styles. I would think a CMS would be trying to force best practices so there is some common standard for editing.
Really the issue is that for most WYSIWYG’s it’s standard to have an option to edit the “code”. WordPress doesn’t have that which is really strange.
At this point I think I need to just forget the easy route. May see what I can do with building my own theme, first. But if that proves to be a hassle I may be tempted to just create a PHP function that parses the HTML output of a WordPress site to find all the CSS. Then create a function to override the CSS output of a theme (at minimum cleaning up the messy HTML). And if I need to I am fairly certain I can modify the core of WordPress, albeit, a bit more involved as updates have to be “handled”, but doable.
I’ve been forced to use my development environment and configure it for a whole new project for this website, so that means all the guns are on the table. No ill contrived code is safe.
Forum: Fixing WordPress
In reply to: Modify my themeI think my frustration made that post a bit longer than needed.
Your link subtlety suggests building my own theme. That thought has crossed my mind. I am avoiding that option as generally figuring out somebody else’s code is not fun, event if it is well documented. It turns a weekend project into a multi-week project.
That Customizer, I think that is what is used for the default theme, and its utter garbage. I am fairly certain not all the CSS can be modified with that, and maybe the bigger issue is it can’t add CSS.
The Child Theme seems like a waste of time, it’s the same amount of work as building a full theme, but you have the added headache of figuring out how to fixing someone else’s screwed up theme.
I guess I was hoping there was some pre-built way to display, and edit, all the CSS for a theme. Maybe along with that all the class and id attributes so you can add CSS.
Hmm, in that line of thought, does that wp_enqueue_style() function call all the CSS for a theme? And then does that function or some other function allow the creation/editing of CSS for a theme? If so making a plugin, to hack the themes, maybe an option. I guess I could also build a PHP function to look through the database and theme files to find all the CSS. But then the issue is whether WordPress will allow me to make changes?
- This reply was modified 2 years, 4 months ago by shanekh.