• yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    Hello!

    Is there any way to change the font size of the whole forum?

  • rafalplens
    5 years ago

    Hi @yaroslawbagriy

    You can do this by re-building locally default theme with custom $font-size variable, and then uploading the result css file on your forum's admin panel as new theme.

    You'll have to git clone main repo and in frontend directory edit style/flavor/variables.less to add those lines:

    @font-size-base:          14px;
    @font-size-large:         ceil((@font-size-base * 1.25)); // ~18px
    @font-size-small:         ceil((@font-size-base * .85)); // ~12px
    

    Next, run those commadns in frontend:

    npm run install
    gulp style
    

    This will case the CSS files in misago/static/misago/css to update. Those files are the ones you will need to upload in your forum's admin panel.

  • yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    @rafalp Thank you! I'll try that this weekend :)

  • yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    I tried running npm run install, but I just get the following npm ERR! missing script: install. I ran npm install inside frontend. I'm also running npm run install in frontend. Not sure what the problem is? Is the install script in a different directory?

  • rafalplens
    5 years ago

    The problem is I've mistaken npm install for npm run install :D

  • yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    Haha yeah I thought maybe that could be the case haha :) Okay it did build! I tried to upload misago.css into themes but it says it needs to be a zip? Can I just zip misago.css and upload that?

  • yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    Alright I got it to work! I just created a new theme, then upload the misago.css to it. But now the whole forum looks weird haha.

  • rafalplens
    5 years ago

    Make sure your theme is not a child of "Misago" theme, or Misago will include both your CSS and theme's CSS.

  • yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    Thanks! Yes I got it working :)

  • yaroslawbagriypanorama_fish_eye
    36 posts
    5 years ago

    @rafalp do you know if there's a way to change the font itself? What font does Misago currently use?

  • rafalplens
    5 years ago
Search
  • Enter search query (at least 3 characters).

Your options