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.

Knowing what theme files to edit

Featured Replies

I've started using WP for a friends small website. I'm still in the testing stages and have added the child theme for the parent one I'm using. Copying and editing files like header and footer is easy enough but I'm having trouble finding the code for other parts I want to change.

 

When using html/css it's obvious what file needs changing and I use the developer tools in Chrome to help. Is there an easy way for me to find out what file an element belongs to?

One thing that can be useful is looking at the body classes, <body class="category"> sometimes they will have things like:

 

page (page.php)
single (single.php)
archive (archive.php)
category (category.php)

But this is only if your theme supports body classes.

Edited by EpicWebs

Check out the WP codex http://codex.wordpress.org/Template_Hierarchy

 

Basically if there isn't a template for it then it will revert to the index.php file.

 

There are plenty of templates within a theme as you can override specific tags, categories, archives with specific targeted theme files

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.