resources & design

Resources blog. Angel, 14, China. I code, I write, and I sleep a lot. That's about it. Here, you'll find resources of all kinds, from writing to coding to photoshop! I hope you'll find something that will be useful for you.
01.02.03.04.05.06.
run by angel
swcnlake: ti, i know you're probably super duper busy but do you know of any tutorials for making a theme that has optional 400 or 500px posts, you know the ones that let you pick?

tianasthemes:

hi jem! no it’s fine, i am very busy but i can help :)

with optional 400px or 500px posts, first check this out so you know where everything is you need to change in order to change post size. 

now, if you want the default to be 400px, in the meta tags (so all the <meta name=”blah blah” content=”1 or 0”>) paste this:

<meta name="if:400px" content="1">
<meta name="if:500px" content="0">

we put the “1” in if:400px because when the user first pastes the code into their customisation page, we want the 400px to be on and not the 500px. if you wanted the 500px to be the default, we would put “0” in if:400px and “1” in if:500px.

then go through all of the code and look for all the things mentioned in the page i linked (to do this fast just search 500 by going ctrl-f)

when you find one, e.g:

#entries {
margin-top:205px;
width:400px;
margin-left:75px;
}

we wrap the things that we want to change along with the post size using the tags {block:if500px} at the beginning and {/block:if500px} at the end.

so the #entries will now be:

#entries {
margin-top:205px;
width:400px;
margin-left:75px;
{block:if500px}
margin-left:40px;
width:500px;
{/block:if500px}
}

you need to do this with everything (all the things mentioned in the linked page) that has to change along with the post size - so the container, header if it is a header theme, ect ect. 

if you have any questions, feel free to ask! hopefully this helped x




THEME ♥