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. Intermediate & Advanced SEO
    4. Titel in header.php

    Titel in header.php

    Intermediate & Advanced SEO
    14 3 193
    • 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.
    • b3n3
      b3n3 last edited by

      header.php is the valid file showing the head of your page.
      header.phpxxx is simply a replacement file, so that in case you modify the header.php you have the option to save the original(header.php) file and replace it for the replacement file (header.phpxxx).

      dunno if i have explained. 🙂

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

        Like Alejandro has explained, the header.phpxxx isn't actually being used. .phpxxx is not a valid php extension, so they've added the xxx in so it isn't used in the wordpress theme.

        Looking at the code in header.php, your title tag is here:

        <title><?php if( is_home() || is_front_page() ) bloginfo('name'); else wp_title(); ?></title>

        This basically means:

        If you're on the homepage or on the front page of the website, show the blog name (which is pulled from your wordpress settings). If not, show the wordpress title (this will be pulled from the name of the page which the user is on).

        If you wanted to make it so the order of the title page is different, for example, if you wanted your title tag to show 'Page Title Here | Site Name', you could go into your wordpress settings and should be able to change the order in which this is done... Alternatively, download a plugin such as Yoast's SEO plugin and you'll be able to customise everything there!

        Rebeca1 1 Reply Last reply Reply Quote 2
        • Rebeca1
          Rebeca1 @PinpointDesigns last edited by

          Thank you very much Alejandro and Lewis. The reason why I was asking this with header is because I am receiving all this errors regarding the header in hostgator cpanel: So I guess I have screwed up something with header?

          [11-Oct-2013 10:46:41] PHP Warning:  require(./wp-blog-header.php) [[function.require](function.require)]: failed to open stream: No such file or directory in /home2/damian/public_html/index.php on line 17
          [11-Oct-2013 10:46:41] PHP Fatal error:  require() [[function.require](function.require)]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/damian/public_html/index.php on line 17
          
          [11-Oct-2013 10:46:41] PHP Warning:  require(./wp-blog-header.php) [[function.require](function.require)]: failed to open stream: No such file or directory in /home2/damian/public_html/index.php on line 17
          [11-Oct-2013 10:46:41] PHP Fatal error:  require() [[function.require](function.require)]: Failed opening required './wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/damian/public_html/index.php on line 17
          
          

          As regarding of the title tag, I am using yoast seo. So does that basicly mean that I have the name of the site behind every titles. Oh my god I do not want this:-( how can I disable it please?

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

            Hi Iris,

            It's hard to debug the problem without being able to see the issue, but it sounds like it's an incorrect file path. Open up your index.php file and find the following:

            require('./wp-blog-header.php'); change it to this:

            require('wp-blog-header.php');

            Hopefully that will help fix your issue!

            Lewis

            Rebeca1 1 Reply Last reply Reply Quote 1
            • Rebeca1
              Rebeca1 @PinpointDesigns last edited by

              Thank you very much Lewis. Now I am not sure which index.php you mean:-( I have so many:-(

              PinpointDesigns 1 Reply Last reply Reply Quote 0
              • PinpointDesigns
                PinpointDesigns @Rebeca1 last edited by

                It should just be the one inside the standard public_html folder as this is what is referenced in the PHP error (/home2/damian/public_html/index.php on line 17).

                Hope this helps! Let us know how you get on.

                Rebeca1 1 Reply Last reply Reply Quote 1
                • Rebeca1
                  Rebeca1 @PinpointDesigns last edited by

                  Thank you

                  PinpointDesigns 1 Reply Last reply Reply Quote 0
                  • PinpointDesigns
                    PinpointDesigns @Rebeca1 last edited by

                    Glad it worked!

                    Yeah, you just need to make the same change to the following index.php file and that will solve that problem too:

                    public_html/villasdiani.com/wp-content/themes/decorum/index.php

                    That should get you all up and running. 🙂

                    Rebeca1 1 Reply Last reply Reply Quote 1
                    • Rebeca1
                      Rebeca1 @PinpointDesigns last edited by

                      Thank you very much Lewis,

                      But here the index.php looks very different:-(

                      PinpointDesigns 1 Reply Last reply Reply Quote 0
                      • PinpointDesigns
                        PinpointDesigns @Rebeca1 last edited by

                        Sorry, I copied the wrong file path. I meant this one:

                        public_html/villasdiani.com

                        Rebeca1 1 Reply Last reply Reply Quote 1
                        • Rebeca1
                          Rebeca1 @PinpointDesigns last edited by

                          Thank you very much Lewis! I just did it exactly as you said. I appreciate your time very much. You know I was looking into this already 1week from morning till evening and was quite desperate. Normally this error was in error logs every day, so I will now monitor it in cpanel if it will not appear again. I hope I will never see it as was nearly ready on some medication 😞

                          Thank you so much Lewis!

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

                            No problem - Glad I was able to help.

                            Best of luck in the future!
                            Lewis

                            Rebeca1 1 Reply Last reply Reply Quote 1
                            • Rebeca1
                              Rebeca1 @PinpointDesigns last edited by

                              Hallo Lewis,

                              I hope you had nice weekend:-)

                              Unfortunately the error still appeared:-( It just did not want the: require('./wp-blog-header.php')

                              But was looking for this one in the error require('wp-blog-header.php');

                              So I did all the steps back as I thought it did not sorted out:-(

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              • Hreflang in header...should I do a Sitemap?
                                GastonRiera
                                GastonRiera
                                0
                                4
                                926

                              • How to 301 Redirect /page.php to /page, after a RewriteRule has already made /page.php accessible by /page (Getting errors)
                                DirkC
                                DirkC
                                0
                                2
                                435

                              • Removing index.php
                                QGS77
                                QGS77
                                0
                                5
                                813

                              • What problems could arise from updating php version?
                                RobertFisher
                                RobertFisher
                                2
                                7
                                273

                              • HTTP Header Canonical Tags
                                AndrewAkesson
                                AndrewAkesson
                                0
                                2
                                271

                              • Redirect index.php to domain address
                                webfeatseo
                                webfeatseo
                                0
                                3
                                374

                              • Why does this show up in my browser/index2.php
                                stefanok
                                stefanok
                                0
                                5
                                480

                              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