Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

Does Montezuma not support child themes?


  #1  
Old May 9, 2013, 01:06 PM
UTAN_dev
 
5 posts · May 2013
Creating my first WP site, I chose Montezuma. I want to avoid hacks and use best practices, so I created a child theme. Unfortunately, nothing I placed into my child style.css had any effect.

In http://forum.bytesforall.com/showthread.php?t=19722, I read that:
Quote:
Montezuma has a series of options for editing the CSS. When you use the options in the theme, the changes are stored in the database as a theme option. No need to create a child theme or use a plugin. My suggestion is to add any CSS overrides to the end of the 'clearfix.css' so you can find them quickly and they are all grouped together.
I have a few questions:
  • Does this mean Montezuma does not support child themes?
  • Is editing Montezuma's one CSS files the only way to modify the base theme?
    • If so, will my overrides be wiped out when the theme is updated?
    • On the flipside, if your CSS + my overrides are stored in the DB, when the theme is updated, should I assume the DB will prevail? Would that mean that the theme would ignore some of its CSS updates if the corresponding CSS file (overridden) has been duplicated into the DB?

I've spent two frustrating days trying to get even the simplest overrides working, in a child theme, before I found the post above. Any answers will go a long way towards helping me understand Montezuma better.

Thanks for your help.
  #2  
Old May 9, 2013, 01:18 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
The modifications made in the virtual css files in the theme options will not get overwritten in a theme update making a child theme unnecessary as these options are stored in the database.

When using Montezuma only make changes in the virtual files not in the theme files and forget about a child theme.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old May 9, 2013, 03:44 PM
jerryc
 
367 posts · Oct 2012
Florida
MZ is so customizable you don't need a child theme.

Quote:
Originally Posted by UTAN_dev
nothing I placed into my child style.css had any effect.
This post shows one way, and links to a post with my favorite way, of overriding the theme css.
  #4  
Old May 17, 2013, 01:53 AM
masmaz
 
38 posts · Apr 2013
last update that there 'was, I changed my customizations.
Fortunately I had made ​​copies of the style.css file which I then reported about the one again.
unfortunately this is a known problem in all updates of a theme or plugin

I would like to say to the author of montezuma to mention the changes of updates, this allows to realize.

regards
max
  #5  
Old May 17, 2013, 07:49 AM
UTAN_dev
 
5 posts · May 2013
Larry, you posted that theme updates won't wipe out virtual CSS files in the theme options. What happens when a new theme version uses new CSS?

Say I add changes to, for example, layout.css. Then an update comes along with a modified layout.css. Apart from some advanced (and unreliable) automated diff voodoo, I can't understand how the update function would be able to apply new rules to the layout.css virtual CSS while preserving my changes. If I understand masmaz correctly, this isn't the case — the update would replace layout.css, losing my changes in the process. I would then have to reapply my changes after the update, which sounds more plausible.

Can you clarify? Again, my tone is not that of someone arguing "you're lying! This theme sux!", rather someone new to WP trying to learn how things work. Thanks for your insight.
  #6  
Old May 17, 2013, 08:13 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
when you install and activatethe theme, the theme options (including all the CSS) is stored in the database. Updates will not change what you have.

If new things are added to one of the css files, say layout.css - you will have to copy your changes, reset that css file and add your settings back in.
  #7  
Old May 17, 2013, 08:22 AM
jerryc
 
367 posts · Oct 2012
Florida
Maybe I can say this in a different way that might help. Here's my understanding:

If you make change directly in the physical files, such as with FTP or cpanel, they get wiped out in updates. If you make changes via the dashboard, they're virtual, and don't get overwritten with updates. I know for sure it works this way for templates and subtemplates, and I'm pretty sure the css is the same.

Juggledad, Larry, is this correct? Does it apply to css the same way it does to templates and subtemplates?

Last edited by jerryc; May 17, 2013 at 09:27 AM.
  #8  
Old May 17, 2013, 10:10 PM
jerryc
 
367 posts · Oct 2012
Florida
Quote:
Originally Posted by UTAN_dev
Apart from some advanced (and unreliable) automated diff voodoo, I can't understand how the update function would be able to apply new rules to the layout.css virtual CSS while preserving my changes.
I don't think it's that complicated. I expect it's something more like:
for each file:
if the virtual file exists,
use it;
else,
use the physical file;
Juggledad might know for sure. He's been inside most of the underlying files.
  #9  
Old May 17, 2013, 10:20 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by UTAN_dev
Larry, you posted that theme updates won't wipe out virtual CSS files in the theme options. What happens when a new theme version uses new CSS?

Say I add changes to, for example, layout.css. Then an update comes along with a modified layout.css. Apart from some advanced (and unreliable) automated diff voodoo, I can't understand how the update function would be able to apply new rules to the layout.css virtual CSS while preserving my changes. If I understand masmaz correctly, this isn't the case — the update would replace layout.css, losing my changes in the process. I would then have to reapply my changes after the update, which sounds more plausible.

Can you clarify? Again, my tone is not that of someone arguing "you're lying! This theme sux!", rather someone new to WP trying to learn how things work. Thanks for your insight.
The way I would get "comfortable" with what is happening is build a sandbox site with an older version, make some changes in the virtual files, and then update to the newest version. Then you will have first hand experience with how it all works. You can download a previous version here or here. You can read more about the theme here.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Child theme and Montezuma rick9004 Montezuma Theme 5 Oct 12, 2012 11:51 AM
Child themes David Latapie Header configuration & styling 3 Nov 2, 2009 05:33 AM


All times are GMT -6. The time now is 07:08 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.