Announcement

Collapse
No announcement yet.

Custom CSS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom CSS

    I am using Miva 9, Iron and Wool Theme. What is the best method for customizing the css? I know I can get into the core css via control panel, or ftp, but is there a way to have a custom css file that would override certain elements? Is it in the User Interface->CSS Resources?

    #2
    Iron & Wool does not utilize the CSS Resources in the administration portal for the CSS delivered to the site. You can add a custom stylesheet using CSS Resources and append it to the HEAD tag or add a custom stylesheet to the site via FTP and update the PHP code to include it for delivery with the rest of the files.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Thank you for the reply.. I have attempted the second option, and have not seen the changes take effect.. I created a custom.css file, uploaded to the css file on the server. In the css.php, i added custom.css to the $files_to_cache = array. Is this correct?

      Comment


        #4
        Yes, so long as the file was uploaded to the mm5/themes/ironwool/css directory and your modification to the css.php file was in the $files_to_cache array, you should see your changed reflected on your site.
        Code:
            $files_to_cache = array(
                'normalize.css',
                'base.css',
                'scaffolding.css',
                'typography.css',
                'buttons.css',
                'fonts.css',
                'forms.css',
                'tables.css',
                'colors.css',
                'slider.css',
                'magnific-popup.css',
                'helpers.css',
                'structure.css',
                'pages.css',
                'theme.css',
                'custom.css',
                'print.css'
            );
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          OK, but I don't have that path option.. There is no themes file.. Only frameworks that leads to a ironwool-readytheme.pkg.

          Comment


            #6
            In that case, if the custom.css file is in the same directory as the rest of the CSS files, the example $files_to_cache above should still work.
            Matt Zimmermann

            Miva Web Developer
            Alchemy Web Development
            https://www.alchemywebdev.com
            Site Development - Maintenance - Consultation

            Miva Certified Developer
            Miva Professional Developer

            https://www.dev4web.net | Twitter

            Comment


              #7
              Changing the topic just slightly, what's all this about a PHP file being part of Merchant? I asked about that some time ago, and was told by someone in-house that Merchant didn't use any PHP code, even though the file was right there on the servers ... What does this file do, and when is it called? Is there any documentation?

              Thanks --
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment


                #8
                Hi Kent,

                In the older ReadyThemes, there is a PHP file used to concatenate and minimize the style sheets and deliver a single file. There is no documentation on the file or its functionality. For the Elements Framework, and the ReadyThemes created from it, there is no file being used to perform this function. The Shadows ReadyTheme does ship with an internal version of a concatenation function, however we are working on a better version for future releases.
                Matt Zimmermann

                Miva Web Developer
                Alchemy Web Development
                https://www.alchemywebdev.com
                Site Development - Maintenance - Consultation

                Miva Certified Developer
                Miva Professional Developer

                https://www.dev4web.net | Twitter

                Comment


                  #9
                  Is there now a better way to do this? Am I correct in assuming the PHP method does not allow caching of the css?
                  Paul

                  Comment


                    #10
                    Still looking to see if there is a better way to handle the css files, but I do see it seems to be cached by browsers. For some reason, I didn't think it would do this with a PHP.
                    Paul

                    Comment


                      #11
                      Hi Paul,

                      Yes, the file will cache. If you want, you can update your site to use the CSS Resources built in and not have to rely on the PHP file. You can start with the instruction for Suivant [ https://www.miva.com/forums/forum/de...te-for-suivant ]
                      Matt Zimmermann

                      Miva Web Developer
                      Alchemy Web Development
                      https://www.alchemywebdev.com
                      Site Development - Maintenance - Consultation

                      Miva Certified Developer
                      Miva Professional Developer

                      https://www.dev4web.net | Twitter

                      Comment

                      Working...
                      X