5
votes
3answers
130 views

Is it possible to override the result of get_template_part()?

I'm working on a child theme, I strongly prefer not to override the main template files in order to maintain simplicity of the child theme as well as minimize the amount of code and maintenance over ...
0
votes
1answer
62 views

How to create a archive template for custom post type [duplicate]

I've created a custom post type using Custom Post Type UI and Advanced Custom Fields plugins. The name of my custom post type is article. I want to have a page which lists all the articles in a ...
0
votes
2answers
96 views

Display random page

I'd like to display a random page that: has a parent page of X or Y or Z, etc. excludes pages with the title "Contributors" The following code works (though without the specific conditions above), ...
0
votes
3answers
108 views

Having some trouble properly displaying Custom Post Types in templates

I have a child theme of Twenty Thirteen and I've setup Custom Post Types for several items. They are showing up in the Dashboard, I can create the Custom Posts and they show up in various categories ...
0
votes
1answer
54 views

lost css when overriding themes templates

i have copied and modified the template file : header.php in my theme child and i kept the same path. here is the full file <?php /** * Your Inspiration Themes * * @package WordPress * ...
1
vote
0answers
90 views

Checking for page templates in child theme

I have a simple problem I'm hoping someone can shed some light on. I have a child theme with a custom page template and I'm simply trying to check weather or not the template is in use. Under normal ...
0
votes
1answer
680 views

WP is not using the select custom template.php that its selected for a page

I created a childtheme: Fisio Inside I have: page-team.php with the name: <?php /* Template Name: Page - Team */ ?> <?php get_header(); ?> <script>alert('its the team ...
0
votes
1answer
137 views

Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy

I've (I think) an interesting problem here. What I want to do is create a global archive page, with everything on it. Dates, authors, categories etc all on one page. I have a child theme, with ...
1
vote
1answer
767 views

roots child theme can't override header.php

I made a child theme for roots and it worked as expected. I can override everything, including footer.php, but not header.php. My header.php looks exactly like the one from roots at the moment, except ...
4
votes
2answers
447 views

Child Theme: how to override variables?

I'm going to build my first Child Theme. I understood how to override functions (hope!), but how to override variables? For example, in a Premium Template I want to change the values of feed variables ...
0
votes
3answers
150 views

Need help with adding templates (archives and sitemap) to Wordpress child theme

I recently switched themes, and my old theme had templates for sitemap and archive (in fact the archive was one of my most viewed pages.) When I switched themes the link to the archive and sitemap ...
0
votes
1answer
541 views

Creating new templates in child themes breaks layout

I am learning how to create new templates in WP. I am using a child theme of Twenty Eleven. My problem is that whenever I create a new template the layout breaks. For debugging I stopped using any ...
2
votes
1answer
1k views

Make “sidebar template” the default template for new pages

On Twenty Eleven or on its child themes the default template for new pages is a template with no sidebar. I don't know why this is like this; it seems to me that the designers of Wordpress are still ...
0
votes
1answer
119 views

output custom Posts on a Page

I'm trying to write a function that will output a set of posts on a page. Because I want to display more than just the post titles, wp_get_archives() won't do (I think). The function to add the post ...
0
votes
1answer
335 views

Load template inside a parent template

Inside of my current theme directory, I created a folder called "mobile" which contains a separate set of template files, all optimized for mobile. Now, say I setup a function that detects a mobile ...
34
votes
3answers
2k views

Opinions and recommendations on the best barebones base theme [closed]

Preamble I'm finding myself building more and more WP sites "from scratch" as it were (ie: ignoring any theme designs out there and just creating a design wireframe purely on the needs of the client. ...