Support » Themes and Templates » Problems of interaction beetwen style.css and editing via console

  • Hi! I have some problem. I edit style of my montezuma theme directly from file style.css, but when I use console to add smth, all my style turns to default. How can I deal with it?

Viewing 10 replies - 1 through 10 (of 10 total)
  • First, you should not be modifying theme files – as your changes will be lost when the theme is updated – instead use Custom CSS or a child theme –

    So I’d suggest you change how you are making those changes.

    But then I’m also not even sure what you mean by:

    when I use console to add smth, all my style turns to default. How can I deal with it?

    Can you give an example and a link to it?

    Thank you for the answer. I don’t know how link can help you, but here it is. Now it’s okey.
    I meant, we have 2 variants to edit style, frome its file (style.css), and using console. But after I make some changes in code via console(doesnt matter .css files or .php)and then click to save, all my settings – style, templates – turns to their primal look as in default montezuma theme.
    For example, I’ve added some text in footer.php from console, and my style became as default. Then I have to change file style.css to its copy.

    Moderator Andrew Nevins


    What do you mean “console”? editing from this place for me = editing from console.

    Moderator Andrew Nevins


    Have you tried adding your CSS through a Child Theme?

    Not yet. I should read about this, at fist)
    But looks good, I’ll try and answer then.

    Well, child theme didn’t help.. Created folder “montezuma-child”, added style.css with this code

    [ Moderator note: please wrap code in backticks or use the code button. Don’t use blockquote it doesn’t work. ]

    Theme Name: Montezuma
    Theme URI:
    Description: Montezuma is a responsive, customizable and search engine optimized HTML5 / CSS3 theme. Choose between responsive, flexible and static layouts. Edit or create new page templates online, without FTP uploads. Add custom widget areas everywhere. Colorbox slideshow for standard WP galleries, auto post thumbs, advanced excerpts, Google fonts, transparent color picker, import/export settings and more. This is the second theme from the author of the popular "Atahualpa" theme. Active community at 
    Version: 1.1.9
    License: GNU General Public License v2 or later
    License URI:
    Tags: light, white, gray, blue, one-column, two-columns, three-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-menu, featured-images, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
    Text Domain: montezuma
    Template:    montezuma
    Author: BytesForAll
    Author URI:
    /* =Imports styles from the parent theme
    -------------------------------------------------------------- */
    @import url('../themes/montezuma/style.css');
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    Then added all the code from style.css (btw, there is few style.css and I use the one, which located in wp-content/uploads/montezuma). Everything is okey, until I made some change in administration panel.

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    This line will not work.

    Theme Name: Montezuma

    It can’t be the same name as the parent. Try this line instead.

    Theme Name: Montezuma Child Theme

    Activate that one and see what happens.

    Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    Also next time please consider using the correct dedicated sub-forum.

    Just putting [Montezuma] in the subject line (deleted) doesn’t do anything. By using the correct sub-forum you increase the chances of your problem being seen by the right people.

    Doesn’t help. I’m frustrated. But thank you!
    Actually, it’s not so bad, I just should always have copy of this damned style.css 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problems of interaction beetwen style.css and editing via console’ is closed to new replies.