homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

File name for pages on Responsive theme
What is the name of the file for pages? More difficult than it seems!

 10:09 am on Aug 12, 2014 (gmt 0)

I'm trying to edit the Responsive Wordpress theme, which I'm sure most people here have come across or use.

I'm making some changes to the page source code in a child theme, and I've found the file used for posts ok, but for the life of me I can't find the file used for pages.

It's not page.php, the developer is unresponsive (ironically), and I'm flailing around trying to find the right one.

Does anyone know the name of the file used for pages?



 1:57 pm on Aug 12, 2014 (gmt 0)

The standard for WordPress themes is page.php. If you don't see this in the theme then the author has created pages a different way.

My guess is the author used the same file for both pages and posts.


 3:17 pm on Aug 12, 2014 (gmt 0)

Hi Lorax - I've edited the posts file, and that's fine, so the author's used a different file.
I've even tried index.php and archive.php and another file called landing-page.php
Have you worked with the Responsive theme?


 4:33 pm on Aug 12, 2014 (gmt 0)

What exactly are the edits you're trying to make?


 5:22 pm on Aug 12, 2014 (gmt 0)

Just the usual simple HTML edits, hard coding in the social sharing buttons (I try to keep plugins to a minimum plus much faster) and a couple of CTAs and explanation text.


 5:26 pm on Aug 12, 2014 (gmt 0)

Well, I installed the template on a sandbox site and then edited page.php and was able to see my added elements. Perhaps it's just a php coding issue.


 5:39 pm on Aug 12, 2014 (gmt 0)

Did you copy the Responsive theme's page.php file into a child directory or work directly on the theme's folder?
There are no problems with the exact same code used in single.php in the same place (at the end), cache always cleared, etc.


 8:01 pm on Aug 12, 2014 (gmt 0)

Yes. I downloaded their child theme then added a copy of page.php and edited it as I wished.


 3:50 pm on Sep 6, 2014 (gmt 0)

I finally figured out the problem, so for anyone else with the same problem:

The reason lorax and I got different results even though we were making the same changes to the page.php file was...in the page attributes instead of selecting 'default' as the template I had selected 'content/sidebar' (which is my default layout).

The default layout is set up under the theme options, and I was trying to do it instead in the page editor.
Once I changed the attributes to default, all of the changes I had made to the page.php file showed up.

Hope it helps someone out!


 1:26 pm on Sep 7, 2014 (gmt 0)

Aha! Thanks for the follow up. Glad you got it sorted!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved