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 »

How to (safely) change the grid


  #1  
Old Jul 14, 2015, 08:46 PM
flyboy's Avatar
flyboy
 
115 posts · Sep 2010
I'm building a Montezuma site, but the fixed-width grids available are a tad narrow, so I changed the width to 1200px by successfully hacking the css file in /wp-content/themes/montezuma/admin/default-templates/css/grids.

However, upon updating the theme, that stuff will inevitably get overwritten. So I came up with a brilliant idea to move the grids outside the Montezuma directory and do a good-old 301 redirect on a server level using an .htaccess file.

Brilliant if it worked, that is. I tried it, and nothing happened - the theme continued observing the CSS grids in their native location.

Anyone have any ideas how I may be able to move the grids while maintaining the updatability of Montezuma?

As in, move the grids directory and force the theme to look for it elsewhere without modifying anything within the theme directory itself?
  #2  
Old Jul 15, 2015, 07:03 PM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
I took a quick look thru the code and don't know thaqt there is an easy answer. At first glance, it looks like it would have to envolve a change of the code.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 22, 2015, 08:03 PM
flyboy's Avatar
flyboy
 
115 posts · Sep 2010
Well, after some thinking I finally found a solution. I can now create a 100% custom grid and now worry about it going up in smoke on update.

The trick is to paste any grid mods into the Montezuma Options > CSS Files > clearfix.css window, at the very end.

With Montezuma, when saving the settings and/or upgrading the theme, all various CSS files get exported and compiled into into one called style.css. This file is the only css file that gets loaded in a browser, and it includes any chosen grid css files. I'm guessing that was done to speed the loading of the pages up and reduce the calls to multiple css files.

Well, the clearfix.css file gets compiled into style.css at the very end. So, by pasting any grid file modifications to the end of the clearfix.css, you are assured to have any modifications load into a browser at the end - after the original grid. Which over-rides the grid that ships with Montezuma.

Best part - these settings are exportable (disclaimer - I haven't tried exporting and importing yet, but since Montezuma exports the said clearfix.css, I would be very surprised if anyone had any problems with that)

Last edited by flyboy; Jul 24, 2015 at 02:20 AM.

Bookmarks

Tags
responsive grid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
image grid thekjub9 Center area post/pages 1 Jun 1, 2011 05:14 AM
How to Upgrade Safely LaneLester New Versions, & Updating 1 Feb 3, 2011 07:31 AM


All times are GMT -6. The time now is 01:32 PM.


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