I can't change the Calendar Color

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cabaret
    Member
    • Nov 2020
    • 36

    I can't change the Calendar Color

    Hello!
    I'm trying to change the calendar color but it can't find the file to do it. I want to change the actual day color (the yellow one).
    Can someone help me?
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Hi there, I don't think you can change it through GUI/Admin panel, it need to be CSS coded through your internet browser or change the coding in your EspoCRM server. See this thread:

    https://forum.espocrm.com/forum/feat...ts/23444-color

    It might work for new Entity though, see post #5 of the thread.


    PS: Welcome to the forum, for more interesting thread check out https://github.com/o-data/EspoCRM-Le...nd-Design/wiki

    Comment


    • Cabaret
      Cabaret commented
      Editing a comment
      Thank you so much!
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    #3
    Hello
    In ESPOCRM is Full Calendar https://fullcalendar.io/
    integrated.
    To change the colour, you have to change the files of Full calender.

    Comment

    • Cabaret
      Member
      • Nov 2020
      • 36

      #4
      Originally posted by peterberlin
      Hello
      In ESPOCRM is Full Calendar https://fullcalendar.io/
      integrated.
      To change the colour, you have to change the files of Full calender.
      Thank you so much Peter! Can you help me again?
      Where can I change the size of the logo from the lateral menu?
      I tried to search the .css but i did't found it...

      Comment

      • telecastg
        Active Community Member
        • Jun 2018
        • 907

        #5
        Hi,

        In order to alter the lateral menu html and styling, where the logo element is defined, you need to create a custom navbar template based on this file https://github.com/espocrm/espocrm/b...ite/navbar.tpl

        That template is called by the navbar.js class https://github.com/espocrm/espocrm/b.../navbar.js#L33

        So you will need first create a new navbar template, copying and modifying the core navbar,tpl template with your custom html or styling code in the custom namespace at: client/custom/res/templates/site/navbar.tpl

        Then create a custom navbar.js class that calls the new custom template:
        client/custom/src/views/site/navbar.js
        Code:
        define('custom:views/site/navbar', 'views/site/navbar', function (Dep) {
        
            return Dep.extend({
        
                template: 'custom:site/navbar'
        
            });
        });
        Then tell Espo to use the custom class. Check this posting to see how to do that. https://forum.espocrm.com/forum/deve...1128#post61128

        After you do your changes, clear and cache and rebuild.

        Cheers !

        Comment

        • Cabaret
          Member
          • Nov 2020
          • 36

          #6
          Originally posted by telecastg
          Hi,

          In order to alter the lateral menu html and styling, where the logo element is defined, you need to create a custom navbar template based on this file https://github.com/espocrm/espocrm/b...ite/navbar.tpl

          That template is called by the navbar.js class https://github.com/espocrm/espocrm/b.../navbar.js#L33

          So you will need first create a new navbar template, copying and modifying the core navbar,tpl template with your custom html or styling code in the custom namespace at: client/custom/res/templates/site/navbar.tpl

          Then create a custom navbar.js class that calls the new custom template:
          client/custom/src/views/site/navbar.js
          Code:
          define('custom:views/site/navbar', 'views/site/navbar', function (Dep) {
          
          return Dep.extend({
          
          template: 'custom:site/navbar'
          
          });
          });
          Then tell Espo to use the custom class. Check this posting to see how to do that. https://forum.espocrm.com/forum/deve...1128#post61128

          After you do your changes, clear and cache and rebuild.

          Cheers !
          Thank you so much!

          Comment


          • telecastg
            telecastg commented
            Editing a comment
            You're very welcome :-)
        • telecastg
          Active Community Member
          • Jun 2018
          • 907

          #7
          Hello Cabaret , regarding your question:
          Is there anyway to just change the logo size on the lateral menu? Without needind to do all the steps that you've mentioned?
          you can change the original scripts but then all changes will be wiped out in the next update, so if you want to keep those changes you will have to modify manually the scripts every time that Espo is updated.
          Last edited by telecastg; 12-02-2020, 07:44 PM.

          Comment

          Working...