Philip Newton (
pne) wrote in
style_system2010-10-15 03:45 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
Add a meta tag to my journal
I’d like to add a <meta>
tag to the HTML of my journal - that has to go inside the <head>...</head>
section, so I guess I have to modify my style or create a layer or something.
http://www.dreamwidth.org/customize/options says I’m using “Cinnamon Cream” and “Crossroads by branchandroot” (I’m guessing the first is the colour scheme and the second is the style?).
Could someone help me accomplish this, please? Handholding would be appreciated since I’m really not a styles person.
Thank you in advance for any help you can provide!
no subject
Crossroads is your layout layer. Cinnamon Cream is your theme layer. Go here:
http://www.dreamwidth.org/customize/advanced/layers
Create a new layout-specific layer: theme with Crossroads. Go here and copy the contents theme layer into your new theme layer:
http://www.dreamwidth.org/customize/advanced/layersource?id=82597
Take out this line:
Now, at the end, add a function like this:
Save and it should compile. Remember your ; though!
no subject
On http://www.dreamwidth.org/customize/advanced/layers, I now have an additional layer: "theme Cinnamon Cream pne" (that's what I called it), which contains my Page::print_custom_head.
However, http://pne.dreamwidth.org/ doesn't contain my meta tag (it should be
<meta name="microid" content="(cryptic string)" />
).Again on http://www.dreamwidth.org/customize/advanced/layers, I clicked on "Child of layer 82592: Crossroads", which took me to http://www.dreamwidth.org/customize/advanced/layerbrowse?id=82592, and then I tried "Raw Source Code" which goes to http://www.dreamwidth.org/customize/advanced/layersource?id=82592 ... and on that page, there's no "print_custom_head", only "print_head".
Does that mean that Crossroads isn't customisable via custom headers?
no subject
So alas this is not working as it should I think, and it must be fixed! Now I'm wondering where the problem is. I don't think it's the cleaner...
Anyway, we're going to have to do what I hoped not to do: copy the
function Page::print()
function into the theme layer you are making and edit it instead. You should probably find the section of <head> inside all the printing and be able to add your tag there--this time I tested doing that and it worked something like:WOE. And I will file a bug to try and figure out why that darned function that was supposed to work for cases like this is not!
no subject
no subject
Not "just working" for me, don't know why. Compiled with no errors but did not show up in the page source. When I added it to already existing print custom head code (for my favicon) it broke my header CSS; when added as a second, separate function, the meta-ness did not show up in the source at all (though it did,like I said, compile).
I would like to add META tags, too...
BTW, my layer...
http://www.dreamwidth.org/customize/advanced/layersource?id=116552
False alarm, so it's working for me: I forgot to actually add meta tags (I just copied out your example text, duh). Sorted!
no subject
In case you didn't read
So no bug has to be filed (well, except the meta-bug "make all this stuff completely intuitive so that even a doddle-head can do it with both hands tied behind their back, without having to ask in a community first").
Thank you!
no subject
@Pne: go to Your Styles, the style you're using should be in bold. Click the edit tab, at the bottom there's a series of drop downs, for the 'theme' layer the default will be selected, but if you click it, the drop down will give you a list of all available, one of them (likely at the bottom) will be your new layer (remembering the layer number from the Layers page will help with that actually).
If it still doesn't work, then Fey's below comment might help.
no subject
I had considered asking whether I have to "apply"/"select"/"activate" the layer somehow but had no idea how.
Your comments made it easy - thanks! My layer was indeed at the bottom and I recognised it from its name (which I had changed, partly so that I would recognise it easily).
no subject
The scary thing is, I got somethign right and 'Fey missed it. That's really not supposed to happen...
Anyway, you have your MicroID working (I assume that's what you added), it's not actually something I've encountered before. Doubt it would be of much use to me, my email address is so public it's silly...
no subject
Precisely, yes.
it's not actually something I've encountered before.
I put it in to prove to ClaimID.com that user “philipnewton” controls that site.
I don’t know how many people know of that site (much less take it seriously), so it’s mostly for fun.
Google Webmaster does something similar, and I’m sure there are other places which ask you to add something to the “head” section and/or create a file with a specific name and/or specific contents in order to prove that you control a given bit of webspace.
no subject
no subject
no subject