Page Templates
-
Greetings,
I am attempting to make changes to the “Grid Page” template through use of a child theme. I have copied the code exactly from the existing “grid-page.php” to my own “sample-page.php” with the exception of changing:
Template Name: Grid Page
to
Template Name: Sample Page
While I would expect the front-end output to look the same, they did not. There is now a large white space on the left of the grid, and the grid is overflowing off the right side of the screen, as seen here. After troubleshooting by eliminating the use of the child theme and making direct edits, it seems that the problem occurs from changing “grid-page.php” to “sample-page.php”, which leads me to believe that there is some specific css targeting going on.That being said, I can only seem to find two relevant lines of css:
body[class*="grid-page"] .content-area, .front-page-block:nth-of-type(2n+1), .post-type-archive-jetpack-testimonial .content-area, .widget-area, .widget-area:before { background: #f7f7f7; } body[class*="grid-page"] .grid-area .wrapper, body.post-type-archive-jetpack-testimonial .grid-area .wrapper, .archive .hentry:before, .blog .hentry:before, .comment-list .comment:before, .comment-list .pingback:before, .footer-widget-area .wrapper, .jp-relatedposts-items-visual .jp-relatedposts-post:before, .page-header, .search .hentry:before, .site-main .comment-navigation, .site-main .paging-navigation, .site-main .post-navigation, .widget-area .widget { padding-right: 36px; padding-left: 36px; }
Replacing “grid-page” with “sample-page” within these lines doesn’t seem to solve the problem. My guess is that there is css syntax being used that I don’t understand. If anyone can point me in the right direction for solving this issue, it would be greatly appreciated.
Thanks in advance,
Brendan
- The topic ‘Page Templates’ is closed to new replies.