showing different images on page header row

Permalink Browser Info Environment
I would like to show an image on the header row of each page. I have been able to show the same image on the header row of all pages by putting this html on the "sideman" stack
<table width="100%"><tr>
<td><img src="/new/index.php/download_file/view_inline/38/" alt="logo_valey.png" width="950" height="166" /></td></tr>
</table>
but I don't see how to make a different picture on different pages.
Also there is a big white space around the picture that I can't find a way to remove (att attached screen grab

1 Attachment

Type: Pre-Sale
Status: In Progress
mhosalim
View Replies:
c5mix replied on at Permalink Reply
c5mix
To make it so you can enter different images on individual pages, you'll need to change some code in the theme's header.php file (located at packages/theme_officespace/themes/officespace/elements/header.php) to display an editable area instead of the site name. So, look for this:
<div id="logo">
        <?php $stack = Stack::getByName('Site Name');?>
        <a href="<?php echo DIR_REL?>/" title="<?php echo SITE?>"><?php if($stack) $stack->display(); else echo SITE;?></a>
    </div><!-- logo ends -->

And change it to this:
<div id="logo">
        <?php 
        $a = new Area('Header');
        $a->display($c);
        ?>  
    </div><!-- logo ends -->

For the white space around it, you'll need to adjust the CSS. Add this to the 'Add your CSS' box in the theme's customization panel (Dashboard->Pages and Themes->Themes and click Customize next to OfficeSpace):
#header-top { height:13px; }
#header { padding: 0 10px; width: 980px; }

concrete5 Environment Information

# concrete5 Version
5.6.3.2

# concrete5 Packages
OfficeSpace Theme (1.5.1), Slate Theme (1.5.3.1).

# concrete5 Overrides
languages/sv_SE, languages/el_GR, languages/tr_TR, languages/de_DE, languages/sk_SK, languages/es_MX, languages/ar, languages/es_ES, languages/nb_NO, languages/fr_FR, languages/pt_PT, languages/es_AR, languages/sl_SI, languages/fa_IR, languages/it_IT, languages/cs_CZ, languages/es_PE, languages/zh_TW, languages/da_DK, languages/nl_NL, languages/ja_JP, languages/ro_RO, languages/fi_FI, languages/vi_VN, languages/ru_RU

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.3.13

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, fileinfo, filter, ftp, gd, hash, iconv, json, libxml, mbstring, mcrypt, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.