The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Should WordPress themes be hard coded for better SEO?

    Should WordPress themes be hard coded for better SEO?

    Technical SEO Issues
    6 2 956
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Wallander
      Wallander last edited by

      In the interests of making my site faster I have recently come across the suggestion of removing unwanted PHP from my WooThemes WordPress theme. The suggestion is to hard code the choices I have made in the WordPress template to reduce on database calls.

      Has anyone actually done this to their WordPress theme before and seen any measurable results?

      1 Reply Last reply Reply Quote 1
      • blacey
        blacey last edited by

        I have used WooThemes in the past and personally I think some of their code and their modifications are a bit overkill, sure it makes things easier for users but its not really following the way WordPress does things (Creating folders in WP-Content to put file uploads from their admin panel for example).

        In general terms I think its better to hard code references to public resources (CSS Links, JavaScript links etc in header.php). For better speed increases I would suggest having links to JQuery or MooTools in header.php and any other JavaScript files should be put in footer.php just above the closing body tag.

        The benefit to this is that the core JavaScript framework (JQuery or MooTools) is loaded first, the page can then render on the screen whilst the last few JS files are downloaded and put to use.

        It maty be worth using WP SuperCache or similar to cache your pages and allow browser gzip compression for quicker page loading.

        I think WordPress in general makes too many database calls anyway, so where possible I think its acceptable to hard code links.

        1 Reply Last reply Reply Quote 0
        • blacey
          blacey last edited by

          To help measure results one way or another you could use http://loads.in to test how long it takes your page to load from different geographical locations. I think Chrome's developer tools has a similar thing as well.

          If you're trying to speed up your site then I would recommend grouping images (icons etc) into an image sprite and use css background positioning to show the respective image. I found that implementing this into a theme resulted in great speed increases as you make a single HTTP request for a single image, as opposed to loading up several images on page load.

          If you're not savvy enough with css image sprites I would recommend using www.spritecow.com to produce the correct background-positions for the images so you can add them into your css file.

          1 Reply Last reply Reply Quote 0
          • Wallander
            Wallander last edited by

            Ben, thanks for the useful follow up. I will certainly check out spitecow. Have found W3 total cache speeds up my site quite a bit, only problem is its breaks the image slider for some reason so have some looking into to do.

            blacey 1 Reply Last reply Reply Quote 0
            • blacey
              blacey @Wallander last edited by

              Hi Sofia,

              Not a problem, glad I can offer my assistance.

              What slider are you using? I might be able to solve that problem for you, I know I had to fiddle with the code of my theme a little to make total cache behave but they were minor changes.

              Wallander 1 Reply Last reply Reply Quote 0
              • Wallander
                Wallander @blacey last edited by

                Hey Ben,

                Thanks. Am using a Wootheme called Simplicity. I have just left the minify box unchecked in W3 Total Cache since this was causing the problem. The site speed seems to be ok though even with this disabled.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Wordpress pagination and SEO
                  BeanstalkIM
                  BeanstalkIM
                  0
                  4
                  289

                • Recommendation for SEO plugin for Wordpress
                  monicapopa
                  monicapopa
                  0
                  9
                  443

                • Changing Wordpress theme page
                  evolvingSEO
                  evolvingSEO
                  1
                  6
                  193

                • Wordpress multisite and SEO
                  CaseyKluver
                  CaseyKluver
                  0
                  2
                  338

                • Will invalid HTML code generated by WordPress affect SEO efforts?
                  SavilleWolf
                  SavilleWolf
                  0
                  3
                  815

                • SEO for Wordpress
                  Intergen
                  Intergen
                  0
                  20
                  900

                • The impact of mulstisite wordpress on seo
                  evolvingSEO
                  evolvingSEO
                  0
                  5
                  359

                • Wordpress SEO Errors - Any advice?
                  junioruf
                  junioruf
                  0
                  3
                  639

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy