Hi everyone! 👋 If you’ve been scrolling through other blogs thinking, "How did they do that?" but you’re too scared to touch your theme's HTML, this post is for you.
You don't need to be a coder to make your theme look cute. I’ve put together a collection of 12 Simple CSS Codes that you can just copy and paste.
🌸 Want to see them in action first?
CLICK HERE TO VIEW THE LIVE PREVIEW
(Check out the preview to see exactly how these move and look!)
🛠️ How to Add These Codes
It is completely safe! If you don't like the result, you can just delete the code and your theme returns to normal.
Go to your blog and click Edit Appearance (the palette icon).
Click Edit Theme.
Scroll down the sidebar and look for "Advanced Options" or "Add Custom CSS". You may also put this under your <style> tag.
Paste ONE of the codes below into that box.
The Design Collection
01. Soft Corners
If your theme feels too "sharp," this softens the edges of every image.
img { border-radius: 30px; }
02. The Noir (B&W Reveal)
A classic look. Images are black & white until you hover over them.
Don't paste them all! Pick just one effect for the best result.
Customize: You can change the numbers! For example, change 0.6s to 1s for a slower movement, or 30px to 10px for less rounded corners.
Happy editing! Let me know which one is your favorite! 💖
⚠️ Disclaimer: These codes target the standard img tag, which means they will affect most images on your blog. Depending on how your specific theme was coded by its creator, these snippets might interact differently with your layout (e.g., sidebar icons or header images). If something looks wrong, simply delete the code from the Custom CSS box and save, and your theme will return to its original state. Always back up your theme code before making major changes!
Can i please ask you how you made your theme? Like how did you make your welcome picture transparent?
yes of course anon! this may be more detailed than you're asking for but i'll give you the whole process! and if you're working on your own theme from my tips, i'd love to see the finished product! i'm sure it'll be absolutely fantastic!
first i went to pinterest to find all of the pngs that i used (planets and stars and all that) and downloaded them! (used this website to remove the backgrounds on them but you can also use remove.bg)
then i went to this website (or you can search metallic silver text and it should be the first site to pop up) to do the text for it! you just have to scroll down a little bit and click on this font style that i used (free but you have to download the alphabet). then type whatever you want to make your text in the box!
after that, i went to the styles tab and just checked the box for shadows (says outer shadow #1). after that you shouldn't have to change anything unless you want to position it any different or change the color like i did for my masterlist and taglist headers! all i did was do a white shadow instead of black since i had a dark background!
then from there you just go to the download tab and download it as a transparent png! that way you don't have to remove the background later!
after i all of those things downloaded and ready, i went to an app called ibis paint x and put them all in a square canvas (same dimensions for length and width) and moved them around until i was happy with it! i saved it as a png with the background still since i still needed to add the text next to the planets.
then i went to canva since ibis paint x doesn't really have the option to curve text how i wanted it. there, i just uploaded the file and added the text i wanted. i used the font league spartan and went to effects and scrolled down until i found the option to curve the text! then i just adjusted it to my liking until it fit around the planets like i wanted! unfortunately canva doesn't allow you to download something without the background without paying for a subscription, so i downloaded it with the background and removed it later.
so to remove the background, i went back to the site i have linked in the first part and uploaded the canva file i just downloaded to it and let it remove the background! after that, i went to the option on the side for shadows and clicked drop shadow and adjusted it until i liked it! after that, i downloaded it by clicking the blue button at the top right corner of the page!
i hope this was at least somewhat helpful for you anon! please feel free to come back to my inbox if you have any more questions! (you have no idea how touching this is to me, in no world would i have imagined someone asking me of all people for a theme tutorial 🥹💗)
We are going to start this part of the tutorial by adding in the permalink. If you don’t know what that is already, it is the thing you click to go to view a post on an individual page. Tumblr makes this really easy. All you need is the following piece of code:<a href="{Permalink}">Text</a>
You can replace the word “Text” from the example above with an image, a note count, the date, or anything else text-based. For example, if we wanted the permalink to be displayed in dd/mm/yyyy format, we would write:{block:Date}DayOfMonthWithZero}/{MonthNumberWithZero}/{Year}{/block:Date}
Tip: Always wrap the date in the “block:Date” tags otherwise the date will show up on ask/submit pages too.
Here are a few other formats:{MonthNumberWithZero}-{DayOfMonthWithZero}-{Year} = 04-10-2012
{DayOfWeek}, {DayOfMonth} {Month} {Year} = Tuesday, 10 April 2012
{ShortMonth} {DayOfMonth}{DayOfMonthSuffix}, '{ShortYear} = Apr 10th, '12
{12Hour}:{Minutes}{AmPm} = 3:00pm
{12HourWithZero}.{Minutes}.{Seconds}{CapitalAmPm} = 03.00.00PM
{24HourwithZero}{Minutes} = 1500
{TimeAgo} = 1 hour ago
[Click here for all the ways you can format the date]
I will be using the {TimeAgo} tag for this example. But I also want to include in the permalink the notecount. This one is easier because there’s only two options for it.{NoteCount} = 1,938
{NoteCountWithLabel} = 1,983 notes
Naturally, this is also wrapped in those pesky block tags. This time it’s “block:NoteCount”. So if we put both the date and notecount together with the word “with” between them, it will look like this:<a href="{Permalink}">
{block:Date}{lang:Posted TimeAgo}{/block:Date}
{block:NoteCount} with {NoteCountWithLabel}{/block:NoteCount}
</a>
What we’re going to do with this piece of code is wrap it in a div and call it “permalink”, then put that div right after our main content, inside the “block:Post” tags (this is important).{block:Posts}
...
[All your post types here]
...
<div id="permalink">
<a href="{Permalink}">
{block:Date}{lang:Posted TimeAgo}{/block:Date}
{block:NoteCount} with {NoteCountWithLabel}{/block:NoteCount}
</a>
</div>
Now that it is wrapped up in a div, we can style it. We don’t need to do much for this theme, since we did a lot of the styling in the content tag. The only things we need to specify here is the size of the font, and use the margin property to make a space between the permalink and the post above it.#content #posts #permalink {
font-size:9px;
margin-top:10px;
}
Tags
The basic code for tags is this:{block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}
Tumblr also gives us an extra block tag called “block:HasTags” since not all posts have tags. If you add in a pretty box or image for tags, it is not a good idea to have it still display when there are no tags at all. In this case I will be adding a div with the label “tags”, and putting this inside the secondary block tags.{block:HasTags}<div id="tags">
{block:Tags}
<a href="{TagURL}">#{Tag} </a>
{/block:Tags}
</div>
{/block:HasTags}#content #posts #tags {
font-size:9px;
}
Now I am going to show you a little trick. At the moment we have formatted the tags so that they will show up like this:
#tag one #tag two #tag three
But what if I want them to show up like this?
tag one, tag two, tag three.
Do you see the problem there? The last tag ends with a fullstop instead of a comma. The following would not work:{block:Tags}
<a href="{TagURL}">{Tag}</a>,
{/block:Tags}.
(Take note of the full stop outside of the “block:Tags” tag.)
tag one, tag two, tag three,.
Here’s a little trick to get around that. Just copy this code:{block:Tags}
<a href="{TagURL}">{Tag}</a><span class="comma">, </span>
{/block:Tags}.#content #posts #tags .comma:last-child {
display: none;
}
It’s the “last-child” bit in the CSS that tells the browser not to display the comma if it’s the last one in the line. We also used “span” instead of “div” because if we’d used div, it would have made a line break, which we don’t want in this case.
tag one, tag two, tag three.
Note Container
The note container is the bit where it lists everyone that has liked or reblogged a post, along with their comments if they made any. Naturally it only shows up on the permalink pages.
This one is going to be done a little differently to the previous two, and be placed outside the “posts” div we created (but it still has to be inside the “block:Posts” tags).{block:Posts}
<div id="posts">
...
[A lot of stuff in here.]
...
[Permalink]
[tags]
</div> [<--closes the "posts" div]
Note Container
{/block:Posts}
Note that you don’t HAVE to put the note container outside the “posts” div, it can be inside if you want. This is just how we’re doing it for this theme. All this means is that it won’t be inside those white boxes we made for each post.
The HTML part for this is simple. Just some block tags, and {PostNotes}. I have wrapped this in a div so we can style it using CSS.{block:PostNotes}
<div id="notecontainer">{PostNotes}</div>
{/block:PostNotes}
Now since we took the note container outside of the “posts” div, we need to re-establish the width and margins. A font size also needs to be specified here since that isn’t specified in any parent tags.#content #notecontainer {
margin: 20px auto;
width: 500px;
font-size: 11px;
}
Now if you look at the theme, you will be able to click through to the permalink pages and see the notes as a list. If there are a lot of notes, they will be labelled 1-50, and number 51 will contain a “Show More Notes” link. Having it numbered is the tumblr default, but it doesn’t actually look nice. We are going to go ahead and access the list using a built in tag called “ol.notes” (ol = ordered list, numbered list), and apply a property called “list-style-type” to remove the number system. I am also going to get rid of the default margins and padding that comes with the list, but padding can be added if you prefer to have the lines more spaced out.#content #notecontainer ol.notes {
list-style-type: none;
margin: 0;
padding: 0;
}
Lastly I am going to edit the little avatar next to each note. At the moment there is no space between the avatar and the name of the blogger, so I’ll be adding in a 10px margin. Plus just to be on the safe size I will include the size of the images.#content #notecontainer img.avatar {
margin-right: 10px;
width: 16px;
height: 16px;
}
Click here to see the code so far, and here for the live-preview.
In the next tutorial we will be finishing up this basic theme with adding in pagination and infinite-scroll. Then I will move on to tricks to make things look pretty like transition-effects.
Hey new tumblr users! Welcome and since it was brought up, I’m gonna teach you guys how to put some custom themes into your blogs to make them more uniquely you!
First off let’s hit that person shaped icon up in the top right corner!
Once you do that it’ll open a list of options. You wanna hit settings! It’ll come up with your account settings first but we want the blog settings so hit your blog name on the right hand side and you should see something like this!
Make sure enable custom theme is set to on! Then hit edit theme and it’ll send your blog page with edit theme options open! You can either go off from here if you are keeping a basic or know html but if you don’t, keep reading! Also I will provide links to free theme blogs and sites that I’ve used but there are plenty more if you want to find very specific styles/colours/etc by googling tumblr themes with those keywords.
Once you got that specific tumblr theme’s html code up, then hit edit html!
Copy and paste the html code into the space and hit update preview! Then hit the back arrow up there and you should have the custom options to play around with. Like so:
Fiddle around with those to your liking with colour, links, and so on and you’ll get your own custom blog like this! Make sure you hit save before exiting or you’ll lose everything!
And there you are! Hopefully this helps! As promised, here are links to blogs that offer free tumblr themes or you can google for specific ones if you wish! Have fun!
https://rachaelthemes.com/
https://viwan-th.tumblr.com/
https://theme-hunter.tumblr.com/
https://floralcodes.tumblr.com/
https://nyctothemes.tumblr.com/
Feel free to reblog with more theme blogs if you have any!
i love ur theme it is so pretty!! how do you make it??
First of all, thank you so much, anon! 💗
And as in how do I make the blog's theme I suppose you mean the aesthetics, banners, headers and all of that (?)
Under the cut I'll try and explain the process I follow to make my usual posts and writings <3
O1. Post Title:
All my titles are made using this web (Messletters) to modify the text font and adding symbols.
You just have to type whatever you want to be edited and, in my case, copy the one that says "Math Serif Bold". After that paste it on ur tumblr draft and change the color (optional).
O2. Pink Header/Banner:
To do the pink images I put under the titles I use Ibis Paint X.
First you have to make a new canva with the photo you want to edit.
After that you create a new layer and paint over the image in your theme color.
To finish, the same layer you used to paint, change it's mode/setting to "Screen" (pantalla).
O3. Resources:
All the images I use are photos I find on Pinterest searching things like "manga header" "manga banner" and such.
Apps I often use: Pinterest, Ibis Paint X, Messletters (web).
Those are used only to give my usual theme to my writings, who are ofc made by me; only using my imagination and some prompt references I see on Tumblr.
Hope you could understand it, even though I explain myself pretty bad! 😅 Tysm <3
In this tutorial, I'll be sharing with you on how to create a popup/modal (herein states as modal) using <dialog>. Base code shall be provided for you to practise. Also, while it is rather a straightforward tutorial, it is recommended for you to have some knowledge of CSS and HTML as I will assume that you know a little bit about them.
[DEMO] [BASE CODE]
To create a modal, there are five parts that I'll be explaining which are:
The script
The open button
The modal + the close button
The backdrop
The Fade effect [Optional]
1. The Script
To ensure that your modal works, we need to add a script into our code. All you need to do is copy the code below and paste it before </body>:
When you click the open button, the modal will appear and you cannot scroll down the contents behind the modal;
When you press the esc key, it won't work;*
When you click the close button, the modal will disappear and you can scroll the blog as per usual.
*The reason why I include this part is because in the event if the blog contains a scroll bar, if a person press the esc key instead of clicking the close button, such scroll bar will not appear.
2. The Open Button
HTML
To add an open button, simply add the code below and paste it at the desired placement:
Tips: If the design of your open and close button are the same, then I recommend if you include another class value of button inside your class attribute so that it'll be easier for you to code.
TAKE NOTE: Do not change the name of the open-modal.
CSS
If you know CSS, there are many ways to code a button. Nevertheless, for the purpose of this tutorial, I have customised the button (both the open and close button) as follows:
.button{ /*BASIC*/ background-color:white; border:1px solid #eee; border-radius:inherit; width:100px; outline:0; padding:.25rem .5rem; /*FONTS*/ font-family:karla; text-transform:uppercase; /*DO NOT TOUCH UNLESS YOU KNOW WHAT YOU'RE DOING*/ cursor:pointer; }
You can also use .open-modal instead of .button if you want to.
3. The Modal + The Close Button
HTML
To create the modal, we will be using <dialog>. To achieve it, we need to add the HTML before </body> and the <script>. Don't worry if you're confused, you can refer back to the base code to understand what I mean by before </body> and the <script>.
<dialog id="modal"> <p>This is your content <button class="button close-modal"> Close Modal </button> </dialog>
Depending on where you want to position your close button, you may need to change the position of your close button's HTML code before or after the content.
CSS
By default, the modal will not be shown without the open button and the script. However, since we have included the script as well as the open button, you can see that once you click the open button, the modal appears! To beautify it a little bit more, you can customise the modal as follow:
For the close button, feel free to use your own creativity to customise it! You can also use the same design as your open button as what you've seen inside the demo. If the position of your close button is the same as what has been shown in the demo, to center it, I added the following code:
.close-modal{ margin:0 auto; display:block; }
4. The Backdrop
We can think of backdrop as something similar as a lightbox in a photoset. By default, you can see that when a modal is opened, everything except for the modal turns darker. To customise the said backdrop, all you need to do is add this code:
Can you give us a tutorial on how to change your fonts in flowered sky theme without messing up the code? Love your themes btw!
Sure!
First, you go to ‘edit theme’ and then to ‘edit html’. When you’re in the code, click the keys ‘Ctrl + F’ at the same time to bring up a search bar, like in the image below.
In the left search bar, type in font-family:
You’ll see that it highlights where it says font-family: in the code, like I circled out in red in the image below. You can hit the ‘Enter’ key to keep finding all parts of the code where you can change the font.
Now, I have used a few different fonts in this code. The default font for normal text is called calibri, the bold text is called 'Roboto Condensed', sans-serif; and the italics, headers / titles, etc. is called “nightingale”.
If you want a way to quickly change them, you can use the two search bars we brought up when we hit Ctrl + F.
Let’s say we want to change the 'Roboto Condensed', sans-serif; font to arial. Then you can do this:
1. In the left search bar, type in font-family: 'Roboto Condensed', sans-serif;
2. In the right search bar, type in font-family: arial;
3. Click the ‘All’ button
And it should change all the ‘Roboto Condensed’, sans-serif; fonts to arial. You can do the same for the two other fonts by doing the first step, only type in either of these instead, depending on which you want to change;
The calibri font, you’ll want to do it both with the space and without the space between the colon, because some of the parts in the code has it with a space, and some places has it without a space, so if you don’t change both, some parts will remain calibri.
Then, once you’re done changing all the fonts, you can just click the ‘Update Preview’ button to check that the fonts have changed to how you’d like them, and if they have, save your theme!
Hi everyone, I made this tutorial as a request by @phantasyreign , hope you’ll find it usefull :3 to follow this tutorial you must have some html, javascript (with some jQuery) and css knowledge. Anyways I’ll try to make it as clear as possible.
1. Add the lastest jQuery release (3.6.0)
jQuery is a javascript library to write javascript code more simple. There is a very important note here. jQuery comes in 4 different “forms”, you can find it:
uncompressed
minified
slim
slim minified
The uncompressed version includes ALL the functionality of jQuery, included AJAX functionalityy and animation effects.
The slim version doesn’t have this functionalities to make it lighter. I remark this point because depending of which version you use, the toggle animation will look different, so in case you are already using jQuery in your theme, consider the result that the button will have.
PD: the minified version is the same as the uncompressed but with all the code is compressed without blank spaces to make it even more lighter, same happens with the slim minified version.
With the slim minified version (which is the one I’m using in this tutorial) the animation will look like this:
And the uncompressed version will look like this:
You can choose any version you want, the uncompressed version by the way has more animations effects you can explore, and the slim version just has the function “toggle” to hide and show elements (which is the one we’re going to use).
Having this clear let’s continue. So we add jQuery inside our <head> tag
<script src="https://code.jquery.com/jquery-3.6.0.slim.min.js" integrity="sha256-u7e5khyithlIdTpu22PHhENmPcRdFiHRjhAuHcs05RI=" crossorigin="anonymous"></script>
2. Add an icon library
This is optional if you want that your button will display an icon. You can use any icon library you want like fontawesome, bootstrap icons, CAPPUCCICONS icons, feather icons, etc. In this tutorial I’m using Bootstrap Icons. So inside our <head> tag again, we add the following
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
3. Add a button
In this tutorial we’re going to add a button independent of the navigation menu, so place the button inside your <body> or <main> tag.
<button type="button" class="controls_tumblr"><i class="bi bi-gear"></i></button>
And then let’s add it some style in our css (inside your <style> tag):
.controls_tumblr {
all: unset;
color: yourcolor;
cursor: pointer;
margin: 10px;
font-size: 1.2rem;
transition: all 0.5s ease;
position: fixed;
top: 0;
right: 0;
}
.controls_tumblr:hover {
color: yourcolor;
}
The ‘.controls_tumblr’ class is to remove all the default styles for the button (all: unset), you can customize as you wish this part.
The ‘.controls_tumblr:hover ‘ is to make the button change the color when the cursor is hover the button.
If you want your button to be inside your navigation menu or in your footer is okay too, just add the button code where corresponding and remove the fixed positioning in the css.
4. Add css to hide the controls by default
Also inside your <style> tag, add the following css:
The margin is for the controls don’t overlap our button, and the display: none is to hide by default our controls. The height is the default tumblr controls height, we add it again because it sometimes gets buggy with using display: none to hide the controls, and the page renders without assigning a height to the controls so the controls won’t show when we click the button.
5. Add the jQuery functionality
Inside your <head> tag, add a <script> tag with the following:
If you’re already using jQuery just add the code below //toggle controls right after your $(document).ready function. The function “toggle” will hide and show your controls using the css attribute "display". The parameteter “slow” will do the transition smooth, if you don’t add it the controls will appear and dissapear without a transition.
And that’s all! :3 If you have any questions please send me a message.