Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   How to completely remove the ".firstpart" classes? (http://forum.bytesforall.com/showthread.php?t=20408)

Fux May 29, 2013 05:17 AM

How to completely remove the ".firstpart" classes?
 
Hi,
I would like to know how to remove all those .firstpart occurences from the code. Sure, I can remove them from the CSS files, but they will still be in the PHP (or not). Where can I find them if I want to remove them to optimize the code?

juggledad May 29, 2013 07:06 AM

I would use a tool that would allow you to search all the files in a folder and do a global search. This would be a 'GREP' in linux or on the mac you could use 'TextWrangler'. No suggestions for windows though.

Remember you will have to repeat it for each update and do you really expect it to save you much of anything?

jerryc May 29, 2013 10:50 AM

Quote:

Originally Posted by Fux (Post 101014)
... I want to remove them to optimize the code?

I agree with Juggledad. Code optimization is not a big deal nowadays because servers now run so fast. If it's really that important to you, you probably don't even want to run WP because it has a good deal of bloat. I used to write my own CMS from scratch, but I'm migrating to WP, and disregarding the bloat.

If you don't want to style it the .firstpart, just edit the css to ignore it, as Juggledad suggests. Neither your users nor your server loads will ever notice the difference.

Fux May 30, 2013 12:05 AM

Thanks for your opinions on that. I'm just used to making optimizations like this and for me it has to do with elegance. I thought there should be an easy way to change this (since we have access to both php and css with Montezuma) but if there isn't I'll have to stick with it.

Quote:

Code optimization is not a big deal nowadays because servers now run so fast
I find that a dangerous assertion. Indeed, servers run faster than 10 years ago, but it still makes sense to make the most out of that. In my example I only started optimizing things precisely because my server was unable to keep up with the demands of my website. So far it paid off.

jerryc May 30, 2013 11:05 PM

Quote:

Originally Posted by Fux (Post 101035)
I only started optimizing things precisely because my server was unable to keep up with the demands of my website.

If you're having server problems, doing things like caching probably makes sense, but you probably have bigger issues than would be solved by trying to trim a few characters out of a style designation here and there.


All times are GMT -6. The time now is 12:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.