Jump to content
Sign in to follow this  
musicianwages

Templates, Sections in Child Theme Not Registering

Recommended Posts

musicianwages

Hi all - I'm customizing the PlatformBase child theme for our site and running into trouble. Here are the symptoms:

  • When I add hooks to the functions.php file, the changes register and everything works great.
  • When I make changes to the style.php file, the changes register and everything works great
  • When I set up and edit templates or sections, none of the changes register
Three problems come to mind:
  1. Perhaps PlatformBase isn't activated - checked that and it is. Anyway, the hooks and css styles are working, so that can't be it.
  2. Perhaps I'm putting the templates in the wrong folder path. But that can't be it - see the screenshot below.
  3. There could be a permissions issue on the path to the templates, but I reset the folder permissions recursively (for now) to 777 and it's still not working.
Does anyone have any ideas? Of course I'd rather not hack the section and template files in PlatformPro. zEIHP.pngedit: typo

Share this post


Link to post
Share on other sites
Kate

Hi David - In that second dialog window, it shows section.sharebar.php as being "0 B". Did you make sure there's content in the new file? I know you copied it, but is it possible it didn't copy correctly?

Share this post


Link to post
Share on other sites
musicianwages

Hi Kate - thanks, yes I see that. I think I had briefly deleted everything in the file to see if it disappeared on the site (it didn't). That file (platformbase/sections/wp/section.sharebar.php) is back to full at 3.7 kb.

Share this post


Link to post
Share on other sites
cmunns

Try putting it in the root of the PlatformBase directory.

Share this post


Link to post
Share on other sites
juliansander

hi, i am new here so i hope this is not yet answered. i found a hash in the file /platformpro/config/config.templates.php which contains the settings for the pages. i have not tried, but it may need to be implemented in the child theme and then adjusted to add the new templates for your templates to become visible.

Share this post


Link to post
Share on other sites
bryan-hadaway

Julian, first karma point. Thanks, Bryan

Share this post


Link to post
Share on other sites
musicianwages

Thank you everyone for your input. I have no doubt that Julian is right, but I'm afraid the hash implementation and template adjustment is over my head. Could someone break that down in layman's terms for me? cmunns, I placed the file in the root directory and had no luck. Thanks! Dave

Share this post


Link to post
Share on other sites
musicianwages

Julian, do you mean I should rename the templates in the child theme and make the child-theme version of the config file include the new template names? Actually...I bet that's not it, but that's all I can think of?

Share this post


Link to post
Share on other sites
cmunns

David, this is actually going to be handled better/ announced in the 1.3 release so that you can do it more easily although I think it works this way now. rename your section files to template.sectionid.php instead of section.sectionid.php and put it in the root of the Base theme. Then get rid of everything except what's inside of the section_template () function and modify as you wish

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×