Font settings of the code block

#965570
Viewing 1 replies (of 1 total)
  • Hello, we apologize for the issue you are facing with changing the font settings for the code block. Unfortunately, the context provided does not contain specific instructions on how to change the font size for the code block directly.

    However, you can adjust the typography settings for various blocks, including font size and line height, through the Styles tab in Rank Math. Here’s a general approach:

    1. Access the Styles Tab: Go to the block settings where you can find typography options.
    2. Adjust Font Size: You can choose from available sizes like Small, Medium, Large, Extra Large, and XXL. You can also set a specific value by clicking the slider icon.
      Typography settings
    3. Reset Settings: If you need to remove any specific font size setting, click on the Typography options (three dots) and then click RESET.
      Remove the Font size setting

    If you want to ensure that the code block matches the font size of the author and category, you may need to apply custom CSS in your theme’s style.css file. Here’s an example of how you might set a specific font size:

    .code-block-class {
        font-size: 16px; /* Adjust this value as needed */
    }

    Please replace .code-block-class with the actual class used for your code block. If you need further assistance, please reply to this ticket, and a human agent from the Rank Math Support team will take over and provide more detailed help.

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Font settings of the code block’ is closed to new replies.