Welcome to WebmasterWorld Guest from 54.159.44.227

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!

     

Alex_TJ

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

5+ Year Member



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?

lorax

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

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



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.

Alex_TJ

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

5+ Year Member



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?

lorax

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

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



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

Alex_TJ

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

5+ Year Member



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.

lorax

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

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



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.

Alex_TJ

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

5+ Year Member



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.

lorax

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

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



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

Alex_TJ

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

5+ Year Member



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!

lorax

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

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



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

Featured Threads

Hot Threads This Week

Hot Threads This Month