Welcome to WebmasterWorld Guest from 54.144.80.75

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

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)

Junior Member

5+ Year Member

joined:Aug 19, 2006
posts: 168
votes: 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)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 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)

Junior Member

5+ Year Member

joined:Aug 19, 2006
posts: 168
votes: 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)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


What exactly are the edits you're trying to make?
5:22 pm on Aug 12, 2014 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 19, 2006
posts: 168
votes: 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)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 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)

Junior Member

5+ Year Member

joined:Aug 19, 2006
posts: 168
votes: 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)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


Yes. I downloaded their child theme then added a copy of page.php and edited it as I wished.
3:50 pm on Sept 6, 2014 (gmt 0)

Junior Member

5+ Year Member

joined:Aug 19, 2006
posts: 168
votes: 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 Sept 7, 2014 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members