<?php $bg_img = $c->getAttribute('background_image'); $bg_img_src = $bg_img->getRelativePath(); ?> <style type="text/css"> body { background-image: url(<?php echo $bg_img_src; ?>); } </style>
Loader::model('collection_attributes'); $bgImgAttrKey = CollectionAttributeKey::getByHandle('background_image'); if (!$bgImgAttrKey || !intval($bgImgAttrKey->getAttributeKeyID())) { $boolt = AttributeType::getByHandle('boolean'); $bgImgAttrKey = CollectionAttributeKey::add($boolt, array('akHandle' => 'background_image', 'akName' => t('Background Image'), 'akIsSearchable' => false)); }
<?php Block::getByName('Logo')->display(); ?>
Short answer: Yes
Many themes, your backgrounds can be replaced in the image folder. Be aware, you need to be cautious to use compatible images types and change the code found on the main CSS page( see http://www.concrete5.org/community/forums/customizing_c5/missing-ba... for example of code change from original in one instance )
Also, If you're only looking to change site name to logo, be sure to edit the my_site_name found in the Dashboards Global Scrapbook.