alchemistdoctor: A pigeon sitting on my leg. He's giving you a look that says "give me the food or I will shit on you." (Default)
[personal profile] alchemistdoctor
Edit: And as usual, DW messed with the code in THIS post. Give me a moment to fix it. XD
Edit 2: I've got it! Finally. 


So as you all know, I've recently been working on some fic rec pages, and the formatting has been... a Journey. However, I think I finally came up with a basic format that works with DW's HTML and CSS styles on most journals, so I thought I'd share it for others' use. The posts look like this:

Preview of Fic Rec

To use the code, copy/paste the code here into the HTML editor of your DW post.

Now to edit. 

The <h1> tags are your headings: in my case they separate the Completed fics and the Incompleted fics. If you have more than one heading, go ahead and copy/paste this line multiple times. In the code above, there are two headings, and the first doesn't have any fics beneath. Replace the entire bracketed text (including the brackets) with your title.

The <h2> tag is for your pairings/subheadings. These will nest under the h1 headings, and be less prominent. There's a cut under each h2 heading, so if you want to add more, make sure to copy from <h2> all the way through the next </raw-code> (this is why that first <h2> is empty in the source code above: if you add things between the two lines, they'll be under the cut). 

Here's where you have two options: you can either link to an Ao3 fic, or a fic hosted elsewhere.

For Ao3 fic:

Go to the fic you want to rec and hit the share button at the top:
Direction toward "share" button

A box with code will come up. You can now delete everything between the tags that say <!--THIS IS WHERE YOUR FIC REC BEGINS.--> and <!--THIS IS WHERE YOUR FIC REC ENDS.--> Just paste your code between, then add your comment in place of the [PERSONAL COMMENTS] bracket.

To add more fics, copy and paste the code -- the comments in-code show you where to start and stop.

For non-Ao3 fic:

Every portion of the fic is in brackets. Go ahead and fill in what information you wish. If you don't want a line or a link, you can delete it!

If you have any questions, please let me know. I'll do my best to answer what I can! This setup isn't perfect but I tried to make the code as simplistic and organised as I know how to without going into some CSS/more complex do-dahs. Good luck reccing!

Date: 2018-12-21 05:16 pm (UTC)
novembermond: (belle)
From: [personal profile] novembermond
thank you this is very useful :)

Date: 2018-12-21 09:07 pm (UTC)
krazyrabbit: (Default)
From: [personal profile] krazyrabbit
Bookmarked for future use, thanks!

Date: 2019-01-11 06:21 pm (UTC)
tozka: title character sitting with a friend (Default)
From: [personal profile] tozka
oh my GOD I feel like such a dumbass. I DID NOT KNOW a) about the share button b) that it had pre-formatted fic information and c) I did NOT NEED TO CODE THAT SHIT BY HAND AFTER ALL

OH MY GOD

(Thank you for this post! I'm definitely going to use this info later lmao)

Date: 2019-01-11 06:28 pm (UTC)
tozka: sleeping woman (breakfast at tiffany's sleeping)
From: [personal profile] tozka
I'm going to be kind to myself and say it's because I assumed the share button was, like many other share buttons, just a thing that said "I liked this fic on AO3 here is a link" with no other information or coding lmao

Excellent resource!

Date: 2019-01-14 08:37 pm (UTC)
jesse_the_k: barcode version of jesse_the_k (JK OpenID barcode)
From: [personal profile] jesse_the_k
....and the next time you figure out something, here's some handy code you can use to make a "copy this and paste it into your journal" area right at the bottom of a post.

The HTML commands create the box with text in it that users can copy and paste. Replace the string "$the-stuff-you-want-to-share-goes-here$" with whatever code or text you wish to share. It's handy for sharing a meme--here are the five questions and the code to make them bold &c.





Date: 2019-01-17 04:09 am (UTC)
vicki_rae: (Default)
From: [personal profile] vicki_rae
This is very helpful, thank you!

Expand Cut Tags

No cut tags

Profile

alchemistdoctor: A pigeon sitting on my leg. He's giving you a look that says "give me the food or I will shit on you." (Default)
alchemistdoctor

Style Credit

Page generated Feb. 4th, 2026 06:28 pm
Powered by Dreamwidth Studios
March 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2021