The Girl Whose Metaphors All Involve Breakfast (cooking_spray) wrote in component_help,
The Girl Whose Metaphors All Involve Breakfast
cooking_spray
component_help

Problem with Header and Comment Divider

Hello, all. I was directed here from everything_lj, and I have a question. I've read the beginners' guide and sifted through the memories, but everything I've tried still won't work.

I've customized my Component layout with the Wizard, but, with the direction of kunzite1's tutorial, I've made all of those customizations into a user layer. I also have created a theme layer for the additional customizations I want to add. All of this coding is new and foreign to me, but I'm trying my best.

I want to add a header at the top of my layout. I found an entry concerning this in memories, but the override that I found there, when I try to use it, keeps telling me "Compile error: line 4, column 1: Only core and layout layers can define new functions."

I know I'm doing something very obvious wrong, but I've been at it for hours and am at a loss. Once again, I'm not very experienced with any kind of coding.



layerinfo "type" = "theme";
layerinfo "name" = "cooking_spray_layout_customizations";

function print_custom_head() {
   """
   <style type="text/css">
     body {
      background-image: url(http://img144.imageshack.us/img144/4359/metaphorialayoutbannercopy5it.jpg) ;
      background-repeat: no-repeat ;
      background-attachment: scroll ;
      background-position: top ;
      margin-top: 300px ; # replace HHH with your image height in pixels
     }
   </style>
   """;
 }



Also, this little image has been giving me ubelievable trouble. . . It claims to be a valid JPEG image file, but every time I upload it onto Image Shack is rejected as "invalid". I have remade it in Photoshop from scratch, making sure my file type is correct and that my background layer is not locked, which was the initial problem, but it's still rejected. Photobucket seems to accept it, but when I plug the direct link in, only the adress appears as a divider, not the image.

Any help would be appreciated. Thanks for your attention.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic
  • 11 comments