Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

Does Montezuma not support child themes?


  #1  
Old May 9, 2013, 02: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, 02:18 PM
lmilesw's Avatar
lmilesw
 
10,174 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, 04: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, 02: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, 08: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, 09:13 AM
juggledad's Avatar
juggledad
 
23,600 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, 09: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 10:27 AM.
  #8  
Old May 17, 2013, 11: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, 11:20 PM
lmilesw's Avatar
lmilesw
 
10,174 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 12:51 PM
Child themes David Latapie Header configuration & styling 3 Nov 2, 2009 06:33 AM


All times are GMT -6. The time now is 04:12 PM.


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