![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
I had an image map of my journal navigation for my imported Flexible Squares layout. I recently switched to a native DW layout (Abstractia) and have gotten all the CSS fixed. However, I'm at a loss as to the theme layer coding for DW.
The image map is giving me a compilng error of: Can't define undeclared object function Page::lay_print_header()
Here is the image map code from my previous theme layer:
I imagine it's the difference between the core code language in DW versus LJ.
The favicon will compile with no errors, but isn't showing up. I copy/pasted the code I used previously, so it should still be working (it was working a couple hours ago):
I took several '<' out so the code will show up; I'm aware they should be there, but that's not the source of the errors. I don't see a way to link to the theme layer with the syntax showing, but both the new theme layer and old one are set to viewable.
Thanks for the help!
The image map is giving me a compilng error of: Can't define undeclared object function Page::lay_print_header()
Here is the image map code from my previous theme layer:
function Page::lay_print_header()
{
print """
img src="https://seleneheart.dreamwidth.org/file/22357.png" USEMAP="#travelheader" BORDER=0>
map name="travelheader">
area name="Recent" shape="poly" coords="139,87,246,61,275,178,160,201,133,87,133,87" href="https://seleneheart.dreamwidth.org" alt="Recent">
area name="Friends" shape="poly" coords="347,83,456,120,440,277,318,228,350,82,350,82" href="https://seleneheart.dreamwidth.org/read/Daily Friends" alt="Reading">
area name="History" shape="poly" coords="524,158,613,148,637,286,545,294,526,157,526,157,526,157" href="https://seleneheart.dreamwidth.org/calendar" alt="Archive">
area name="Profile" shape="poly" coords="692,143,804,167,777,295,686,277,695,138,695,138" href="https://seleneheart.dreamwidth.org/profile" alt="Userinfo">
""";
}
I imagine it's the difference between the core code language in DW versus LJ.
The favicon will compile with no errors, but isn't showing up. I copy/pasted the code I used previously, so it should still be working (it was working a couple hours ago):
function Page::print_custom_head()
{
"""
link rel="shortcut icon" href="http://www.iconj.com/ico/6/8/68zs2jn2z0.ico" type="image/x-icon" />
link rel="icon" type="image/ico" href="http://www.iconj.com/ico/6/8/68zs2jn2z0.ico" type="image/x-icon" />
""";
}
I took several '<' out so the code will show up; I'm aware they should be there, but that's not the source of the errors. I don't see a way to link to the theme layer with the syntax showing, but both the new theme layer and old one are set to viewable.
Thanks for the help!
no subject
Date: 2020-07-24 09:46 pm (UTC)For the first bit, Page::print_header() is the function you want, I think. For the second, I will do some digging - three guesses offhand are either 1) caching issue, 2) something doesn't like the mix of of HTTP and HTTPS content, or 3) something in the compile step is stripping it out.
EDIT: Okay, Page::print_header() does seem to do the trick, and the favicon is loading for me (though firefox prints a mixed content warning in the browser console). I think https://momijizukamori.dreamwidth.org/?s2id=3802293 should show you my extremely quick'n'dirty test with a theme layer I had stashed.
no subject
Date: 2020-07-24 10:45 pm (UTC)The layer compiled with no issues, but the image map isn't 'live'. Yours seems to be so I'm not sure what's going wrong for both those functions in my case.
Here's the theme layer number if that means you can look at it, if I understand the Dreamscapes post: #1038633
I've set it both viewable and public.
no subject
Date: 2020-07-24 11:23 pm (UTC)Yep, I could look it up with that! Are you sure you actually have the custom theme layer applied? I just copied it into a new theme layer for Abstractia and it looks like it's working properly there - https://momijizukamori.dreamwidth.org/?s2id=3802316
no subject
Date: 2020-07-25 12:02 am (UTC)Thanks for the help!
no subject
Date: 2020-07-25 12:10 am (UTC)It depends on the LJ theme, but yeah, a decent number of them (and anything custom) roll the layout layer and the theme layer into a single file - which you could do here but you'd have to copy over the entire source code for Abstractia, and it's probably faster to just copy your CSS, heh.
Glad I could help!