I'm using this template 'JekyllAndHyde' and i want a different header image on each page (exept the home page).
Can this be done with the morepagedata plugin??
I added this code right above the head to the template:
Code: Select all
<style type="text/css"><?php // here the css-definition is called, and php will generate it
if(isset($headimage)) { // i.e.: if a $headimage value has been entered via page data tab, do this
echo '#head {background-image:url(' . $pth['folder']['template']
. $plugin_cf['morepagedata']['path_template_images'] . $headimage . ');}';
}
if(isset($bgcolor)) {
echo '#body {background-color:'.$bgcolor.';}';
}
if(isset($width)) { // $width in this example is type "checkbox", so its value is only on (=set) or off
echo '#content {width:650px;}';
}
?></style>
</head>
Code: Select all
#lck_head {
background-color: #2a2a2a;
background: url(images/bg.jpg) 50% 0 no-repeat;
-webkit-background-size: cover;
background-size: cover;
display: table;
height: 33%;
height: 33vh;
margin: 0;
min-height: 230px;
padding: 0;
width: 100%;
}
Any help is much appreciated!!