Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WordPress - removing unnecessary code for theme from scratch

Featured Replies

Hi,

 

I've been following a premium tuts+ tutorial which has me removing unnecessary code from header.php. However, I got stuck due to the tutorial using the classic 'default' WP theme whereas I'm using the twenty eleven theme which contains a lot of different code compared to the old theme.

 

I've tried downloading the old theme that WP used to come with but for some reason doesn't work properly. The theme will display but will not show any page links for pages that have been created. Unfortunately my knowledge of PHP is pretty limited so I'm unable to do anything about that on my own.

 

Anyway, I'm assuming that it may be possible to simply leave the code in there and continue working through the tutorial but I'd like to know which code from within header.php is actually required for a theme from scratch and which can be left out.

 

 

Any assistance would be most welcome.

Thanks

I've found that a lot of the wordpress tutorials were written for older versions of Wordpress(that classic blue theme has been gone for a while) and unless you really want to tear your hair out it is best to skip the tutorials mostly written in 2008.

 

If you want a bare-bones theme try Starkers starkerstheme.comI think HTML5Boilerplate also has one.

  • Author

I've found that a lot of the wordpress tutorials were written for older versions of Wordpress(that classic blue theme has been gone for a while) and unless you really want to tear your hair out it is best to skip the tutorials mostly written in 2008.

 

If you want a bare-bones theme try Starkers starkerstheme.comI think HTML5Boilerplate also has one.

 

Thanks for the reply. There don't seem to be many tutorials for versions 3 and above though I did find one at onextrapixel.com which seems decent. I'm also looking at the whiteboard framework.

 

Knowing which of the php code I should touch and which I should leave is going to be problematic it seems. At least until I figure out what code does what.

 

I'll check out the one you've linked and go with whichever seems most suitable.

 

Thanks again for the reply.

Edited by Raf1k1

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.