How to reduce the size of font in the post content?



  • I want to reduce the basic font size of lavender themes.

    --

    Also how to change the redis password? technically I skipped the password during redis setup. How to recover or change?

    Thanks and more powers to all admin/staff/members here. 👍


  • Plugin & Theme Dev

    Hi,

    Let's see here...

    You can go into the topic.less file in the lavender template. It should be located node_modules/nodebb-theme-lavender/less/topic.less.

    Look for .post-content it should be in the following hierarchy: .topic .posts .post-content. Example below:

    .topic {
      .posts {
        .post-content {
          //You can put whatever font-size here.
        }
      }
    }
    

    Hope this helps!



  • Thank you so much. 👍 @trevor

    Off topic: anyway do you have any idea about to my redis issue?



  • Go to your redis.conf file inside /etc/redis/ and press Ctrl + W to search, type in requirepass and it will take you to the security portion of that document, uncomment the requirepass by removing the # to the left, leave a space after requirepass, and enter a long password. Something you've never used, and something that won't be cracked anytime soon, I use a 52 character string. Some use more. Then save that document, go to your nodebb config.json file, and enter the password into the password field.

    Might need to restart redis and nodebb, make sure you run bg-save first though or you may lose posts if they've been made recently.



  • Done! Thank you. @a_5mith 👍



  • I changed the font size in posts but now the font size in quotes are too large in comparison. I want to customize the appearance of quotes but I don't know in which file they're located.


  • Admin

    @snowplum .post-content blockquote should work. You can just put it in the custom CSS portion of the ACP



  • Thank you.

    What about the quote in preview area as you type. The font size there is still too big.


  • Admin

    .composer .preview blockquote{
      font-size: 12px;
    }
    


  • Awesome. Thanks, baris. Thanks, julian.



  • @trevor said:

    Hi,

    Let's see here...

    You can go into the topic.less file in the lavender template. It should be located node_modules/nodebb-theme-lavender/less/topic.less.

    Look for .post-content it should be in the following hierarchy: .topic .posts .post-content. Example below:

    .topic {
      .posts {
        .post-content {
          //You can put whatever font-size here.
        }
      }
    }
    

    Hope this helps!

    On lavender theme this is .topic-text if it is not a change in css since then.

    @baris for blockquote :
    I made a try but it doesn't work. Any update on this or is it Lavender theme related ?


 

| |

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.