• I use the blog.txt theme. I notice that the entire contents of function.php is enclosed in <php?> tags. Does functions.php have to be loaded and processed in it’s entirety each time a page is loaded? Is it worth the effort to gut it of unused code? I’ve pretty much got my page complete and I could get rid of a lot of code for the unused sidebar widgets. I’ve already gotten rid of all the theme options code, which was kind of an interesting project, btw.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Cathy Mitchell

    (@multitalentedmommy)

    sounds like you enjoy the journey, so I would check the classic theme’s function folder, look through to find the things that you might want to keep. And then compare to your current theme, and delete away! Worst case scenario you upload a new functions.php from your theme’s BACKUP copy. 🙂

    Thread Starter longwing1

    (@longwing1)

    MTM, I’ve got so many backups now I’m starting to get confused. I’m not very good at this, so I’ve broken my site about a hundred times, but I’ve always managed to get it fixed – so far.

    There is still a lot of stuff in the style sheet that I don’t know what it is. But I’m slowly figuring it out. I’ll gut it as I can. My biggest concern is that once it’s all stripped down I’ll become feature crazed. That would be unfortunate.

    Cathy Mitchell

    (@multitalentedmommy)

    lol been there done that! 🙂 Now I’ve got so many hours of learnin’ under my belt I think I’ll start designing for $$$. 🙂 I got a lot of good things from this tut.

    Cathy Mitchell

    (@multitalentedmommy)

    Oh – and just guessing here – but wouldn’t the functions.php be called only when a function is called? In the sidebar.php the functions are nearly always called – so yup. I guess you’re right. It is called all the time. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘functions.php’ is closed to new replies.