WordPress Notes

Changing permissions in the themes directory in the folder wp-content allows the wordpress web app to edit the theme.

Blessedly, the post composer supports copy and paste of images; images may be cropped and resized. This is nice.

In a given file, the wordpress theme editor displays a menu for those functions present in the file. Functions may be native to wordpress or native to the theme. Functions native to the theme are defined in the file functions.php . Therefore, the ideal wordpress theme defines few functions.

Global paragraph style may be adjusted using “custom CSS” code in the appropriate fckign thing. The following code from GPT4 provides some blessed whitespace around paragraphs:

p {
    margin-top: 1em; /* Space above the paragraph */
    margin-bottom: 1em; /* Space below the paragraph */
}

The following makes the code blocks look different:

code {
font-family: 'Courier New', Courier, monospace !important;
    color: grey;
}

Crucially, CSS to center content in viewport:

body {
    max-width: 50rem; 
    margin: 0 auto; 
}

20 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *