• Resolved modalsoul88

    (@modalsoul88)


    Hi guys,

    I’m working with the Twenty Fourteen theme.

    I’ve worked in PHP a couple times before and usually everything is fine.

    This time, however, I was working in Cpanel, and tried to center my site content. I went into page-templates, copied full-width, then pasted that to my child theme folder. After that my site got messed up.

    Here is my website:
    https://www.thepickuppirate.com

    For the header I didn’t use PHP or Cpanel to configure it so I’m guessing that’s why it still appears nicely, but at the bottom of the page my content doesn’t show and instead it shows a “Fatal error: Call to undefined function twentyfourteen_has_featured_posts() in /home1/sparrow/public_html/wp-content/themes/twentyfourteen/page.php on line 19”.

    I’ve tried a good amount of stuff and searched lots but I can’t find any answers as to how to get my site back to normal. Please advise!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Delete the file you copied into your child theme and you’ll be back wehre you started. (Fingers crossed.)

    Thread Starter modalsoul88

    (@modalsoul88)

    I tried that but it didn’t work. The only folders in my child theme folder are:

    images (logo)
    footer.php
    header.php
    style.css

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    This time, however, I was working in Cpanel, and tried to center my site content. I went into page-templates, copied full-width, then pasted that to my child theme folder. After that my site got messed up.

    what did you paste and where did you paste it?

    Thread Starter modalsoul88

    (@modalsoul88)

    There’s a page template called “FULL-WIDTH” in “PAGE-TEMPLATES” folder. That’s the one I copied and pasted into my child theme folder.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    fix your style.css

    /*
    Theme Name: PickupPirate - Child
    Version: 1.0
    Description: A child theme of Twenty Fourteen
    Template: twentyfourteen
    
    @import url("../twentyfourteen/style.css");

    Add a “*/” after the template line.

    Thread Starter modalsoul88

    (@modalsoul88)

    I called Hostgator and the guy helped me change to a Twenty Fifteen theme. The site looks back to normal now. Thanks for your help, sterndata.

    Just in case, could you explain a little more how I can fix my style.css? Not sure how that would work.

    -Captain Collins

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Working in PHP and Discombobulated my 2014 Webpage’ is closed to new replies.