Support » Fixing WordPress » Static Front Page – Where’s the Code?

  • I’m now administrating a site someone else built, and I’m having to rebuild a lot of it after a migration mishap. For the life of me, I can’t figure out the home page. I’ve already wasted 3 hours of my day on this, finally gave up, and decided to ask for help.

    The site has a static home page with a slider on it. Part of the content is located on the designated home page, which is linked under Appearance > Customize >Front Page. However, the space below that content on the home page has me baffled. I can’t find it anywhere.

    The “blog” page was set under “home page” in the Front Page admin area, but when I go to look at the code on the “blog” page, it’s giving me an error that the page is being edited, and it doesn’t display the content editor at all. I thought this might be where I should look, but if I remove that page in the Front Page settings, it doesn’t change anything.

    It’s supposed to look like this with a recent posts section:

    However, now it looks like this:

    The old page had the Facebook Feed plugin activated, which I deactivated. But the shortcode [custom-facebook-feed] is still there, and I can’t find it anywhere on the backend! I also can’t figure out how to add the “recent posts” back. It seems to be using just the built-in recent posts widget (there aren’t any plugins installed for it), but where the heck are the settings for it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The person who made this site probably added custom code to the theme itself. So he or she added the shortcode in one of the file, most likely the front-page.php.

    I suggest opening the theme files in a text editor like brackets and search for the shortcode. Same goes for the recent post widget. The person who made this hard coded it into the theme files.

    Thanks, Joshua. My hunch was that it was in one of the CSS or PHP files. Found it in a homepage PHP file. Deleted that Facebook code, and at least the embed shortcode is no longer displaying. I also looked at the recent posts code from a the browser page source – that version of the page is not available as a file. The code is too complicated for me to figure out how to paste it into the PHP file. I don’t know PHP well enough. Might just try using a different plugin, or see if I can get the shortcode to the built-in widget and paste it in.

    No problem. I may be able to help you with the widget, I know PHP quite well and it’s not a huge task. Is there someway I can contact you out of the forums?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Static Front Page – Where’s the Code?’ is closed to new replies.